Skip to content

ci: add explicit permissions to GitHub Actions workflows#177

Merged
serajahmad01 merged 1 commit into
mainfrom
ciGitHubTokenDefaultToReadOny
May 27, 2026
Merged

ci: add explicit permissions to GitHub Actions workflows#177
serajahmad01 merged 1 commit into
mainfrom
ciGitHubTokenDefaultToReadOny

Conversation

@MarcoEidinger

Copy link
Copy Markdown
Member

Add explicit GITHUB_TOKEN permissions to comply with security hardening measures for supply chain attack prevention.

  • ci.yml: Set read-only permissions (contents: read) as the workflow only performs verification tasks
  • spm-collection.yml: Set write permissions (contents: write, pull-requests: write) required for creating PRs via peter-evans/create-pull-request action

This change prepares the repository for the organization-wide switch to read-only default permissions scheduled for 27 May 2026.

Reference: CPAWGOSS-1209

Add explicit GITHUB_TOKEN permissions to comply with security hardening measures for supply chain attack prevention.

- ci.yml: Set read-only permissions (contents: read) as the workflow only performs verification tasks
- spm-collection.yml: Set write permissions (contents: write, pull-requests: write) required for creating PRs via peter-evans/create-pull-request action

This change prepares the repository for the organization-wide switch to read-only default permissions scheduled for 27 May 2026.

Reference: CPAWGOSS-1209

@serajahmad01 serajahmad01 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

@serajahmad01 serajahmad01 merged commit 8a464a7 into main May 27, 2026
3 checks passed
@serajahmad01 serajahmad01 deleted the ciGitHubTokenDefaultToReadOny branch May 27, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants