Skip to content

ci: add permissions: read-all to all workflows (7 files)#528

Open
Alb3e3 wants to merge 1 commit into
strukturag:masterfrom
Alb3e3:harden-ci-permissions
Open

ci: add permissions: read-all to all workflows (7 files)#528
Alb3e3 wants to merge 1 commit into
strukturag:masterfrom
Alb3e3:harden-ci-permissions

Conversation

@Alb3e3

@Alb3e3 Alb3e3 commented Jun 11, 2026

Copy link
Copy Markdown

Summary

All 7 CI workflows are missing top-level permissions declarations. Without this, jobs run with the default broad token permissions (contents: write, packages: write, etc.), violating the principle of least privilege.

Changes:

  • Add permissions: read-all at the workflow level for all 7 workflows

Action SHA pins were already present in most workflows; this PR adds only the missing permissions declarations.

Add `permissions: read-all` at the workflow level to enforce least-privilege
for all jobs, and pin all third-party action references to full commit SHAs
to prevent supply-chain attacks via mutable version tags or branch names.
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