newrelic/Agent Metadata Action

Fetches agent configuration metadata to create/update NEGP entities in NR

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 2, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: newrelic/agent-metadata-action@8d9478273aa88567a2922bc7a562dd5510d4f69c # v1.2.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
newrelic-client-idNewRelic client ID (pass from secrets)yes
newrelic-private-keyNewRelic private key content (pass from secrets)yes
agent-typeThe type of agent eg. NRDotNetAgentno""
versionAgent version tag name (ex. v1.2.3). Must match the exact git tag name for checkout.no""
git-refGit 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-directoryDirectory containing agent configuration files (relative to repository root, default: .fleetControl)no.fleetControl
fetch-depthNumber of commits to fetch (> 1 may be required for docs flow)no1
oci-registryOCI registry URL for binary uploads (e.g., ghcr.io/newrelic/agents). Leave empty to skip binary upload.no""
oci-usernameOCI registry username (required if oci-registry is set)no""
oci-passwordOCI registry password or token (required if oci-registry is set)no""
binariesJSON 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-typeMonitoring type indicating which fleet this agent belongs to (APM or INFRA). Leave empty to use the service default mapping.no""
display-nameHuman-readable display name for this agent.no""
cacheEnable Go build cachenotrue
apm-control-nr-license-keyNew Relic APM license key for instrumentation of this action (optional, pass from secrets)no""

no outputs