chore: update fullsend shim workflow - #144
Conversation
|
🤖 Finished Review · ✅ Success · Started 9:26 PM UTC · Completed 9:36 PM UTC Commit: |
ReviewFindingsHigh
Low
Next steps:
Previous runReviewFindingsHigh
Medium
Labels: PR removes SHA pinning from a privileged GitHub Actions workflow reference, weakening supply chain security controls on a protected infrastructure file Next steps:
|
Update the shim workflow to match the current template in the .fullsend config repo.
1a29955 to
78ba237
Compare
|
🤖 Finished Review · ✅ Success · Started 7:48 PM UTC · Completed 7:59 PM UTC Commit: |
| github.event_name != 'issue_comment' | ||
| || github.event.comment.user.type != 'Bot' | ||
| uses: konflux-ci/.fullsend/.github/workflows/dispatch.yml@701e62a9c6f104ed68f8d4085d9c3b8bad3a82e4 # main | ||
| uses: konflux-ci/.fullsend/.github/workflows/dispatch.yml@main |
There was a problem hiding this comment.
[high] permission-expansion
Reusable workflow reference changed from pinned SHA (701e62a9c6f104ed68f8d4085d9c3b8bad3a82e4) to mutable branch reference (@main). This workflow runs on pull_request_target with elevated permissions including id-token: write (OIDC token minting) and actions: write. SHA pinning ensures immutability of the called workflow code — switching to @main means any push to the main branch of konflux-ci/.fullsend will immediately change the code executed in this privileged context. This is a supply-chain risk and also breaks the repository's established convention of pinning all action/workflow references to immutable SHAs.
Suggested fix: Keep the SHA-pinned reference. Update the pinned SHA to the new target commit: uses: konflux-ci/.fullsend/.github/workflows/dispatch.yml@ # main
| github.event_name != 'issue_comment' | ||
| || github.event.comment.user.type != 'Bot' | ||
| uses: konflux-ci/.fullsend/.github/workflows/dispatch.yml@701e62a9c6f104ed68f8d4085d9c3b8bad3a82e4 # main | ||
| uses: konflux-ci/.fullsend/.github/workflows/dispatch.yml@main |
There was a problem hiding this comment.
[low] process-gap
Security-relevant change (removing SHA pinning for a privileged workflow) submitted by a bot as a template sync with no linked issue or ADR documenting the rationale for accepting increased supply-chain risk.
Suggested fix: Document the decision to accept or reject the upstream template's move to @main, either in an issue linked to this PR or in an ADR.
This PR updates the fullsend shim workflow to match the current template in the
.fullsendconfig repo.The shim content has drifted from the template — this brings it back in sync.