Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› Token-Permissions
Governance, Ownership & Risk

Token-Permissions

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Governance, Ownership & Risk

Token-Permissions is an OpenSSF Scorecard check that assesses whether the automatic tokens in a project's CI workflows, such as the GitHub Actions token, are limited to least privilege. Broad write access lets a compromised or malicious step alter code, releases or packages. Defenders declare read-only permissions and grant write access only to the jobs that need it.

What Token-Permissions Measures

Token-Permissions checks a CI workflow’s automatic token settings to confirm they follow least privilege. In practice, that means the default token should usually be read only, with write access granted only to the specific jobs that genuinely need it.

Why Token Scope Matters in CI/CD

Workflow tokens are powerful because they sit on the trust path between automation and the repository. If a token can write code, release assets or packages broadly, a compromised step can turn a routine build into a supply-chain modification point. NHI Management Group’s CI/CD Security Guide covers the surrounding pipeline controls that make this risk more or less exploitable.

That is why Token-Permissions is not just a configuration preference. It expresses whether automation is constrained to the minimum access needed for checkout, test, publish or release tasks, rather than inheriting blanket authority across the workflow.

How Least Privilege Is Applied in Workflows

The check reflects a simple but important design rule: start with a restrictive default, then elevate only the jobs that need extra capability. This keeps routine automation from being able to modify protected branches, publish packages, or alter release metadata without an explicit need.

OpenSSF Scorecard evaluates that posture as part of its broader assessment of repository security. NHI Management Group’s OpenSSF Scorecard Guide explains how the token-permissions signal fits into the wider Scorecard model and how teams use it when judging project risk.

In mature setups, job-level permissions are preferred over workflow-wide write access, because they narrow the blast radius of a compromised action, dependency or script step. NHI Management Group’s How to Restrict GITHUB_TOKEN Permissions in Workflows shows the practical pattern: read-only by default, write scopes only where needed.

Where Token-Permissions Sits in the Open Source Security Model

Token-Permissions is one piece of a broader repository hardening story that includes branch rulesets, trusted publishing, protected releases and reviewed workflow changes. A low-privilege token reduces the damage a bad workflow step can do, but it works best when paired with controls that also limit who can trigger automation and what that automation may touch.

NHI Management Group’s CIS Software Supply Chain Benchmark Guide is useful here because it ties token scope to the wider controls that protect source, build and release integrity.

For maintainers, this check is also a governance signal. If a project needs broad workflow write access to function, that is often a sign the release process or job structure should be redesigned so that power is concentrated only where it is truly required.

Risk and Threat Considerations

Overbroad workflow tokens create a direct compromise path from a single malicious or hijacked step to repository tampering, release poisoning or package abuse. The risk is highest when workflows handle pull requests, third-party actions or release automation, because those are common places for untrusted code paths and hidden privilege escalation.

Failure mechanism: a workflow step inherits write-capable token permissions that exceed its actual task, allowing an attacker who reaches that step to change code, publish artifacts, or alter release state without needing separate credentials.

Impact: the compromise can move from execution abuse to supply-chain integrity loss, with altered releases, malicious package updates, unauthorized repository changes or persistent trust damage for downstream consumers.

Standards & Framework Alignment

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

CIS Controls v8, OWASP ASVS, SLSA and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-16 — Application Software SecurityLeast-privilege workflow tokens reduce software supply-chain abuse risk.
Recommendation — Enforce least-privilege token scopes in CI/CD to limit build and release tampering.
OWASP ASVSV8 — AuthorizationToken-Permissions is fundamentally about what automation may do in a workflow.
Recommendation — Verify that workflow permissions are denied by default and granted only per job.
SLSASupply Chain Levels for Software ArtifactsToken scope is a supply-chain integrity control for build and release pipelines.
Recommendation — Restrict workflow token authority to preserve build and release provenance.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeThe check directly measures least-privilege access for automated workflow tokens.
CM-5 — Access Restrictions for ChangeWorkflow token scope governs who can make controlled changes through automation.
Recommendation — Apply least privilege to CI workflow tokens and restrict write access to necessary jobs. Limit workflow permissions so only authorised automation can change code or release assets.

Practitioner Guidance

What to watch for: treat broad token permissions as a design smell, especially when the same workflow mixes build, test and publish responsibilities. A clean permission model usually separates those duties so that only the release job can write, while earlier jobs remain read only.

Governance implication: teams should review token scope as part of repository security baselines, not as an occasional hardening task. If the workflow cannot clearly justify a write permission, that permission should not be present.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org