Subscribe to the Non-Human & AI Identity Journal

Trusted Publishing

Trusted publishing is a release method that ties package publication to a verified CI workflow, usually with short-lived identity tokens and provenance evidence. It reduces the value of stolen legacy credentials, but only if older publish paths are fully removed and not left alongside the new flow.

Expanded Definition

Trusted publishing is an NHI release pattern that binds package publication to an authenticated CI workflow rather than a manually handled long-term secret. The workflow identity, build context, and provenance evidence become the basis for trust, which is why the model aligns closely with NIST Cybersecurity Framework 2.0 concepts for protecting the software supply chain. In practice, the term covers short-lived token issuance, attestation, and policy checks that decide whether a build is allowed to publish. Usage in the industry is still evolving, and definitions vary across vendors on how much provenance, repository binding, or runner integrity is required before a release qualifies as trusted.

For NHI governance, the important distinction is that trusted publishing reduces reliance on reusable credentials, but it does not eliminate identity risk. A CI workflow can still be impersonated, mis-scoped, or left with fallback paths that bypass the newer release flow. NHIMG research in the Ultimate Guide to NHIs shows how often secrets and service identities remain exposed across tooling, which is exactly the environment where trusted publishing is meant to narrow attack paths. The most common misapplication is treating the presence of provenance evidence as proof of security, which occurs when legacy publish credentials still work alongside the new CI-bound path.

Examples and Use Cases

Implementing trusted publishing rigorously often introduces release friction, requiring organisations to weigh reduced credential exposure against stricter pipeline controls and build-time dependency on identity infrastructure.

  • A package registry accepts releases only from a verified CI job signed by the repository’s identity provider, replacing a manually stored publish token.
  • An open source maintainer rotates from a shared API key to short-lived OIDC-based publication, while retaining immutable build logs for auditability.
  • A platform team enforces branch protections and provenance checks before publication, so a compromised developer laptop cannot publish directly.
  • A security review flags a dual-path setup where trusted publishing exists, but an older release token still has write access and must be removed.
  • An enterprise maps the release process to supply-chain guidance in the NIST Cybersecurity Framework 2.0 while using the Ultimate Guide to NHIs to assess whether build identities and secrets are still overexposed.

Why It Matters in NHI Security

Trusted publishing matters because package release systems are high-value NHI targets: they can turn a single stolen credential into a broad supply-chain compromise. NHI Mgmt Group research shows that 79% of organisations have experienced secrets leaks and 77% of those incidents caused tangible damage, which is why release credentials, CI tokens, and signing paths deserve the same governance discipline as production service accounts. The security gain comes from shortening credential lifetime, tightening provenance, and reducing where a publish identity can be reused or stolen.

That said, the control only works when older publish methods are fully retired. If a legacy secret remains active, the organisation still has a standing privilege path that bypasses the trust model entirely. The Ultimate Guide to NHIs is especially relevant here because it shows how commonly organisations leave secrets in code, CI/CD tooling, and other exposed locations. Organisations typically encounter the consequences only after a rogue release or package hijack, at which point trusted publishing becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Trusted publishing replaces persistent publish secrets with short-lived NHI credentials.
NIST CSF 2.0 PR.AC-1 Release access should be authenticated and limited to verified CI identities.
NIST CSF 2.0 PR.DS-6 Provenance and integrity evidence support trustworthy software release handling.

Eliminate standing publish secrets and require short-lived, workflow-bound credentials for every release.