ogg
ogg copied to clipboard
ci: add read-only token permissions and pin actions/checkout to SHA
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.