Fix Release workflow: remove disallowed SBOM/Cosign actions#333
Merged
Conversation
anchore/sbom-action and sigstore/cosign-installer are not on the org's allowed-actions list, causing the Release workflow to fail at startup (startup_failure) and blocking tag releases. Strip SBOM generation and Cosign signing so the workflow uses only policy-approved actions (checkout, setup-go, golangci-lint-action, action-gh-release), matching the job shape that released v3.6.0. Drop the SBOM/Cosign line from the changelog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After dropping the SLSA reusable workflow (#332), the
v3.6.1tag still hitstartup_failure. Annotation:The org's allowed-actions policy is enforced at workflow load time, so these two step-level actions (both new since v3.6.0) failed the whole Release workflow before any job ran.
Fix
Remove the SBOM generation (
anchore/sbom-action) and Cosign signing (sigstore/cosign-installer) steps, plus the now-unneededid-token: writepermission and the sbom/sigstore release assets.Remaining actions are all policy-approved:
actions/checkout,actions/setup-go— GitHub-createdgolangci/golangci-lint-action@*— on the allowlistsoftprops/action-gh-release@v3— used successfully in the v3.6.0 releaseThis matches the job shape that released v3.6.0. CHANGELOG updated to drop the SBOM/Cosign line.
Follow-up (optional)
To restore SBOM/Cosign/SLSA later, an org/enterprise admin would need to add
anchore/sbom-action,sigstore/cosign-installer, andslsa-framework/slsa-github-generatorto the org's allowed actions/reusable-workflows list.