
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
github.com/elastic/go-elasticsearch/_examples/cloudfunction
This example demonstrates how to use the Elasticsearch Go client with Google Cloud Functions.
Deploy the function with the gcloud
command:
$ go mod vendor
$ gcloud functions deploy clusterstatus \
--entry-point Health \
--runtime go111 \
--trigger-http \
--memory 128MB \
--set-env-vars ELASTICSEARCH_URL=https://...cloud.es.io:9243
Invoke your function over HTTP:
$ curl https://...cloudfunctions.net/clusterstatus
See the function.go
file for implementation and the function_test.go
file for the example of implementing a mock transport for testing.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.