Skip to content

[codex] Pin GitHub Actions workflows#27

Merged
KickNext merged 1 commit into
mainfrom
codex/pin-github-actions
Jun 24, 2026
Merged

[codex] Pin GitHub Actions workflows#27
KickNext merged 1 commit into
mainfrom
codex/pin-github-actions

Conversation

@KickNext

Copy link
Copy Markdown
Owner

Summary

  • Pin external GitHub Actions and the pub.dev reusable publish workflow to immutable full commit SHAs.
  • Narrow the Pages workflow permissions so only the deploy job receives pages: write and id-token: write.
  • Keep tag comments beside each pin to make future dependency updates easier to review.

Why

The security scan found two supply-chain hardening issues: privileged workflows used mutable @vN refs, and the Pages workflow granted deploy/OIDC authority at workflow scope. Pinning refs and narrowing permissions reduces the blast radius of upstream tag movement or action compromise.

Validation

  • Parsed .github/workflows/*.yml successfully.
  • flutter analyze
  • flutter test
  • flutter analyze from example/
  • flutter test from example/
  • dart pub publish --dry-run (reel_text 0.4.0, 0 warnings)
  • rg "uses: .*@(v[0-9]+|main|master|stable)" .github/workflows found no mutable workflow refs.

Notes

The previous security report mentioned 0.1.6 because the local checkout used for the scan was stale. This branch is based on the current origin/main at v0.4.0.

@KickNext KickNext merged commit 654259d into main Jun 24, 2026
1 check passed
@KickNext KickNext deleted the codex/pin-github-actions branch June 24, 2026 22:19
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