Skip to content

Commit

Permalink
fix(ci): adjust syft command and repository reference for signing
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
  • Loading branch information
Mossaka committed Dec 16, 2024
1 parent 9a59c26 commit 28f742d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Create SBOM file
shell: bash
run: |
syft \
sudo syft \
-o spdx-json \
--file ${{ inputs.image-name }}-sbom-${{ matrix.arch }}.spdx \
ghcr.io/${{ env.IMG_REPOSITORY_NAME }}/${{ inputs.image-name }}@${{ env.PLATFORM_DIGEST }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: |
IMG_REPOSITORY_NAME=$( echo ${{ github.repository }} | awk '{print tolower($0)}' )
cosign sign --yes \
ghcr.io/${{ github.repository }}/${{ inputs.image-name }}@${{ inputs.image-digest }}
ghcr.io/${IMG_REPOSITORY_NAME}/${{ inputs.image-name }}@${{ inputs.image-digest }}

0 comments on commit 28f742d

Please sign in to comment.