Skip to content

Workflows do not restrict GITHUB_TOKEN permissions (Scorecard Token-Permissions) - #2223

Merged
AkramBitar merged 1 commit into
mainfrom
fix-2219
Aug 14, 2026
Merged

Workflows do not restrict GITHUB_TOKEN permissions (Scorecard Token-Permissions)#2223
AkramBitar merged 1 commit into
mainfrom
fix-2219

Conversation

@Effi-S

@Effi-S Effi-S commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #2219

OpenSSF Scorecard reports a Token-Permissions finding (severity: high, score 0) against several GitHub Actions workflows: no top-level permissions block is defined, so the GITHUB_TOKEN in these workflows runs with the repository/organization default scopes rather than the least privilege each workflow actually needs.

Impact

Without an explicit least-privilege permissions declaration, a compromised action, dependency, or injected step in these workflows would inherit broad write access to the repository (contents, pull requests, issues, packages, etc.). This widens the blast radius of any supply-chain or workflow compromise and keeps the repository's Scorecard security posture below its potential.

Affected workflows

  • .github/workflows/tests.yml
  • .github/workflows/protect-integration-test-types.yml
  • .github/workflows/md_links.yml
  • .github/workflows/codeql-analysis.yml

Reported by code scanning (Scorecard) alerts #150, #151, #152, #153.

@Effi-S Effi-S added this to the Q3/26 milestone Aug 13, 2026
@Effi-S Effi-S self-assigned this Aug 13, 2026
@Effi-S
Effi-S marked this pull request as ready for review August 13, 2026 15:23
@Effi-S
Effi-S requested a review from AkramBitar August 13, 2026 15:23

@AkramBitar AkramBitar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkramBitar

Copy link
Copy Markdown
Contributor

LGTM

Signed-off-by: Effi-S <effi.szt@gmail.com>
@AkramBitar
AkramBitar merged commit 51ddbde into main Aug 14, 2026
153 checks passed
@AkramBitar
AkramBitar deleted the fix-2219 branch August 14, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflows do not restrict GITHUB_TOKEN permissions (Scorecard Token-Permissions)

2 participants