Skip to content

Commit 232ef96

Browse files
samuelho-devclaude
andcommitted
fix: add actions:write permission for SBOM artifact upload
Reusable workflows need actions:write to upload artifacts. Also simplified artifact name to avoid potential character issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent bdb0d39 commit 232ef96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docker-build-push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ permissions:
9090
packages: write
9191
id-token: write
9292
security-events: write
93+
actions: write # Required for artifact upload in SBOM generation
9394

9495
jobs:
9596
build:
@@ -200,7 +201,7 @@ jobs:
200201
image: ${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image }}@${{ steps.build.outputs.digest }}
201202
format: 'spdx-json'
202203
output-file: 'sbom.spdx.json'
203-
artifact-name: ${{ inputs.image }}-sbom.spdx.json
204+
artifact-name: sbom-${{ inputs.image }}
204205
upload-artifact: true
205206
upload-release-assets: false
206207

0 commit comments

Comments
 (0)