Skip to content

ci: restrict workflow token to read-only contents - #452

Closed
Alb3e3 wants to merge 1 commit into
apache:mainfrom
Alb3e3:harden-ci-permissions
Closed

Alb3e3 wants to merge 1 commit into
apache:mainfrom
Alb3e3:harden-ci-permissions

Conversation

@Alb3e3

@Alb3e3 Alb3e3 commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Set the default GITHUB_TOKEN permission for the build matrix to contents: read.

The workflow checks out source, builds, runs tests, and uploads artifacts. It does not write to the repository, so a read-only contents token is sufficient and limits the impact of a compromised action.

This is a Google Patch Rewards OSS-Fuzz Tier 2 hardening patch. AI assistance was used and is disclosed.

@astitcher

Copy link
Copy Markdown
Member

Merged

@astitcher astitcher closed this Oct 5, 2026
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