ogg icon indicating copy to clipboard operation
ogg copied to clipboard

ci: add read-only token permissions and pin actions/checkout to SHA

Open Alb3e3 opened this issue 5 months ago • 0 comments

Summary

Both CI workflows (autotools.yml and cmake.yml) lacked a top-level permissions: block, leaving each run to inherit the repository default, which can be write-all on permissive settings. Each workflow now has permissions: read-all at the top level.

The actions/checkout@v2 reference in both workflows was also updated to the current v6.0.3 release and pinned to its full commit SHA (df4cb1c069e1874edd31b4311f1884172cec0e10). Pinning to a SHA rather than a mutable version tag prevents the action from being silently changed under the project.

Verification

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

Result: no findings after this patch.

Alb3e3 avatar Jun 11 '26 21:06 Alb3e3