Skip to content

ci: add read-only token permissions and pin all action references to SHAs#480

Open
Alb3e3 wants to merge 1 commit into
xiph:mainfrom
Alb3e3:harden-workflow-permissions
Open

ci: add read-only token permissions and pin all action references to SHAs#480
Alb3e3 wants to merge 1 commit into
xiph:mainfrom
Alb3e3:harden-workflow-permissions

Conversation

@Alb3e3

@Alb3e3 Alb3e3 commented Jun 11, 2026

Copy link
Copy Markdown

Summary

All six CI workflows lacked a top-level permissions: block, leaving
each run to inherit the repository default (potentially write-all).
Each workflow now has permissions: read-all at the top level.

Every action reference using a mutable version tag was pinned to its
full commit SHA (9 pins total), including actions/checkout and
msys2/setup-msys2.

Verification

uvx zizmor --min-severity high .github/workflows/

Result: no findings after this patch (was 9 high-severity before).

…SHAs

All CI workflows lacked a top-level permissions block, leaving each run
to inherit the repository default (potentially write-all). Each workflow
now has `permissions: read-all` at the top level.

Every action reference that used a mutable version tag was pinned to its
full commit SHA, preventing silent tag-rewriting supply-chain attacks.

Verified with zizmor --min-severity high: no findings after this patch.

Signed-off-by: Alb3e3 <tomaska.filip@gmail.com>
@Alb3e3 Alb3e3 force-pushed the harden-workflow-permissions branch from e078349 to c029c3f Compare June 11, 2026 22:29
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