Skip to content

ci: enforce least-privilege permissions for GitHub Actions workflows#37

Open
Dong Ma (larainema) wants to merge 1 commit intomainfrom
fix/add-least-privilege-permissions
Open

ci: enforce least-privilege permissions for GitHub Actions workflows#37
Dong Ma (larainema) wants to merge 1 commit intomainfrom
fix/add-least-privilege-permissions

Conversation

@larainema
Copy link
Member

Enforce least-privilege permissions

This PR adds explicit permissions blocks to GitHub Actions workflow files that currently have no permissions defined, following the principle of least privilege.

Changes

  • ci.yaml: contents: read

Why

Without explicit permissions, workflows inherit the default token permissions configured at the repository or organization level. By explicitly declaring the minimum required permissions, we reduce the blast radius if a workflow is compromised.

References

Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
@larainema Dong Ma (larainema) force-pushed the fix/add-least-privilege-permissions branch from ba27be6 to e640862 Compare March 11, 2026 16:44
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.

1 participant