You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(security): pin actions to SHAs, least-privilege permissions, verify gitleaks (P2, lane 21)
- Pin every third-party action to an immutable commit SHA (with a # vN comment)
in ci.yml, secret-scan.yml, license-check.yml, docker-publish.yml. Mutable
major tags (actions/checkout@v6 etc.) can be silently re-pointed by a
compromised upstream. Dependabot keeps SHAs current.
- Add `permissions: contents: read` to ci.yml, secret-scan.yml, license-check.yml
so jobs don't inherit a write-capable GITHUB_TOKEN from the repo default.
(docker-publish.yml already scopes contents:read + packages:write per job.)
- secret-scan.yml: verify the downloaded gitleaks tarball against the published
SHA256 checksum before extracting/executing it.
- Add .github/CODEOWNERS requiring owner review on .github/ changes.
Addresses lane 21 MEDIUMs (permissions, SHA-pinning, unverified gitleaks
download) + LOW (CODEOWNERS).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: KingArthur000 <sathyaprakashelango@gmail.com>
0 commit comments