fix: use main branch for changesets/bot action#363
fix: use main branch for changesets/bot action#363
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Changeset Bot GitHub Actions workflow to resolve an action reference that cannot be fetched as changesets/bot@v1 by switching to the repository’s default branch.
Changes:
- Update workflow action reference from
changesets/bot@v1tochangesets/bot@main.
.github/workflows/changeset-bot.yml
Outdated
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: changesets/bot@v1 | ||
| - uses: changesets/bot@main |
There was a problem hiding this comment.
Using a floating ref (changesets/bot@main) makes this workflow non-deterministic and increases supply-chain risk, especially with pull_request_target and pull-requests: write permissions (the action code can change without review). Prefer pinning the action to an immutable commit SHA (or a trusted, signed tag/release if one becomes available) and update it intentionally when needed.
| - uses: changesets/bot@main | |
| - uses: changesets/bot@3b4cf1f2c9a6c1891d3dbed1d5d295df1b548d64 # pinned from @main |
There was a problem hiding this comment.
@kimyouknow Thanks for the review! I've pinned it to a full commit SHA in bcf5104.
I pinned to e755cedfffdc49f54ce5daa69d960a143941b787(current master HEAD).
Pin to master HEAD SHA as changesets/bot has no release tags. Aligns with the repo's SHA-pinning policy (toss#325).
Summary
changesets/bot@v1action resolution failure — thechangesets/botrepo has nov1tag/releasechangesets/bot@mainso the workflow can resolve the actionTest plan