Skip to content

chore(security): pin GitHub Actions to SHAs and harden token permissions#37

Merged
hubertlim merged 1 commit into
mainfrom
chore/security-hardening
May 27, 2026
Merged

chore(security): pin GitHub Actions to SHAs and harden token permissions#37
hubertlim merged 1 commit into
mainfrom
chore/security-hardening

Conversation

@hubertlim

Copy link
Copy Markdown
Owner

Summary

Addresses OpenSSF Scorecard findings to improve the supply-chain security posture of the CI/CD pipeline.

Changes

  • Pin all GitHub Actions by commit SHA with version tag comments (resolves 41 PinnedDependencies alerts)
  • Tighten codeql.yml token permissions by moving security-events: write from workflow-level to job-level (resolves TokenPermissions alert)
  • Add explicit contents:read on all workflow jobs
  • Tighten dependabot config for Docker images to only accept patch-level bumps to prevent failing builds from language minor-version jumps (e.g. python 3.12 -> 3.14)

Verification

  • All workflow files validated locally
  • SHA pins resolved against upstream repos
  • Dependabot will continue to update pinned SHAs

…ions

Address OpenSSF Scorecard findings:

- Pin all GitHub Actions to commit SHAs with version tag comments (resolves
  41 PinnedDependencies alerts)
- Move security-events:write permission from workflow-level to job-level in
  codeql.yml (resolves TokenPermissions alert)
- Add explicit contents:read on all jobs

Dependabot will continue to update SHAs while preserving the version tag
comments for human readability.

Also: tighten dependabot docker config to only accept patch-level bumps
because language minor versions (e.g. python 3.12 -> 3.14) can lack
prebuilt wheels and break the build.
@hubertlim hubertlim merged commit 44151b7 into main May 27, 2026
12 checks passed
@hubertlim hubertlim deleted the chore/security-hardening branch May 27, 2026 05:59
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