Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@opentelemetry/resource-detector-github
Advanced tools
OpenTelemetry SDK resource detector for GitHub
Resource detector for GitHub Actions.
Detects GITHUB_*
environment variables specified here and adds as attributes on a resource.
This is useful for collecting telemetry in GitHub Actions-powered CI/CD workflows.
The OpenTelemetry Resource is an immutable representation of the entity producing telemetry. For example, a process producing telemetry that is running in a container on Kubernetes has a Pod name, it is in a namespace and possibly is part of a Deployment which also has a name. All three of these attributes can be included in the Resource
.
Compatible with OpenTelemetry JS API and SDK 1.0+
.
npm install --save @opentelemetry/resource-detector-github
const { gitHubDetector } = require('@opentelemetry/resource-detector-github')
async function run() {
// Initialize GitHub Resource Detector
const resource = await gitHubDetector.detect();
};
run()
Resource Attribute | Description |
---|---|
github.actor | Value of Process Environment Variable GITHUB_ACTOR |
github.base_ref | Value of Process Environment Variable GITHUB_BASE_REF |
github.head_ref | Value of Process Environment Variable GITHUB_HEAD_REF |
github.ref | Value of Process Environment Variable GITHUB_REF |
github.run_id | Value of Process Environment Variable GITHUB_RUN_ID |
github.run_number | Value of Process Environment Variable GITHUB_RUN_NUMBER |
github.sha | Value of Process Environment Variable GITHUB_SHA |
github.workflow | Value of Process Environment Variable GITHUB_WORKFLOW |
Apache 2.0 - See LICENSE for more information.
FAQs
OpenTelemetry SDK resource detector for GitHub
We found that @opentelemetry/resource-detector-github demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.