Skip to content

Pin GitHub Actions to immutable commit SHAs - #1141

Open
charpeni wants to merge 2 commits into
get-bb:mainfrom
charpeni:pin-github-actions-shas
Open

Pin GitHub Actions to immutable commit SHAs#1141
charpeni wants to merge 2 commits into
get-bb:mainfrom
charpeni:pin-github-actions-shas

Conversation

@charpeni

@charpeni charpeni commented Aug 7, 2026

Copy link
Copy Markdown

Summary

Pins all third-party GitHub Actions across .github/workflows/ and the setup-workspace composite action to immutable commit SHAs (with version comments) using pinact, reducing supply-chain risk from tag-retargeting attacks.

Why

Action version tags (@v4) are mutable — a compromised maintainer or token could retarget a tag to malicious code that runs in CI with our secrets. Pinning to a SHA makes the executed code immutable while the trailing # vX.Y.Z comment preserves readability and dependency-update tooling support.

Changes

Action Pinned SHA Version
actions/checkout 11d5960a… v4.4.0
actions/setup-node 49933ea5… v4.4.0
actions/upload-artifact ea165f8d… v4.6.2
actions/cache 0057852b… v4.3.0
pnpm/action-setup b906affc… v4.3.0

6 workflow files plus .github/actions/setup-workspace/action.yml are updated.

Verification

  • pinact run applied cleanly to all files with no errors.
  • Diff confirms only uses: lines changed; no logic or step ordering altered.

Notes

  • Future action bumps can be re-run through pinact run .github/workflows/*.yml .github/actions/setup-workspace/action.yml, or via Dependabot which understands SHA-pinned actions.

@charpeni
charpeni force-pushed the pin-github-actions-shas branch from a5f0652 to 12c1f6e Compare August 7, 2026 15:43
ymichael added a commit that referenced this pull request Aug 7, 2026
## Summary

- render GitHub Flavored Markdown tables as structured, overflow-safe
tables in GitHub issue and pull request bodies
- support alignment markers, optional outer pipes, escaped pipes, and
existing inline formatting inside cells
- add focused frontend regression coverage based on the table from #1141

## Testing

- `pnpm exec turbo run test typecheck build --filter=bb-plugin-github
--force`
- `pnpm exec prettier --check
plugins/github/components/markdown-lite.tsx
plugins/github/components/markdown-lite.test.tsx
plugins/github/vitest.config.ts plugins/github/package.json`
- `pnpm install --lockfile-only --frozen-lockfile`
- `git diff --check`

Fixes #1142
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