newrelic/Agent Metadata Action
Fetches agent configuration metadata to create/update NEGP entities in NR
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 2, 2026
- License
- Apache 2.0
Pinned Snippet
uses: newrelic/agent-metadata-action@8d9478273aa88567a2922bc7a562dd5510d4f69c # v1.2.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| newrelic-client-id | NewRelic client ID (pass from secrets) | yes | — |
| newrelic-private-key | NewRelic private key content (pass from secrets) | yes | — |
| agent-type | The type of agent eg. NRDotNetAgent | no | "" |
| version | Agent version tag name (ex. v1.2.3). Must match the exact git tag name for checkout. | no | "" |
| git-ref | Git reference to checkout (tag, branch, commit SHA). Use this when the git tag differs from the semantic version. For example, if your git tag is "nr-ebpf-agent-1.2.3" but the version for APIs is "1.2.3", pass git-ref="nr-ebpf-agent-1.2.3" and version="1.2.3". Leave empty to use version parameter for checkout (backwards compatibility). | no | "" |
| config-directory | Directory containing agent configuration files (relative to repository root, default: .fleetControl) | no | .fleetControl |
| fetch-depth | Number of commits to fetch (> 1 may be required for docs flow) | no | 1 |
| oci-registry | OCI registry URL for binary uploads (e.g., ghcr.io/newrelic/agents). Leave empty to skip binary upload. | no | "" |
| oci-username | OCI registry username (required if oci-registry is set) | no | "" |
| oci-password | OCI registry password or token (required if oci-registry is set) | no | "" |
| binaries | JSON array with artifact definitions. Each artifact must specify name, path, os, arch, and format. Example: [{"name": "linux-tar", "path": "./dist/agent.tar.gz", "os": "linux", "arch": "amd64", "format": "tar+gzip"}] | no | "" |
| monitoring-type | Monitoring type indicating which fleet this agent belongs to (APM or INFRA). Leave empty to use the service default mapping. | no | "" |
| display-name | Human-readable display name for this agent. | no | "" |
| cache | Enable Go build cache | no | true |
| apm-control-nr-license-key | New Relic APM license key for instrumentation of this action (optional, pass from secrets) | no | "" |
Outputs
no outputs