Skip to content

Commit

Permalink
fix(release): skip file cataloger in syft scans (chainloop-dev#1873)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose I. Paris <[email protected]>
  • Loading branch information
jiparis authored Mar 3, 2025
1 parent e0c1222 commit b5618bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
if [[ $entry != *latest ]]; then
material_name="$(echo $entry | sed 's#.*/##')"
syft -o cyclonedx-json=/tmp/sbom-$material_name.cyclonedx.json $entry
syft -o cyclonedx-json=/tmp/sbom-$material_name.cyclonedx.json --select-catalogers -file $entry
chainloop attestation add --value $entry --kind CONTAINER_IMAGE --attestation-id ${{ env.ATTESTATION_ID }}
chainloop attestation add --value /tmp/sbom-$material_name.cyclonedx.json --kind SBOM_CYCLONEDX_JSON --attestation-id ${{ env.ATTESTATION_ID }}
Expand Down Expand Up @@ -157,9 +157,10 @@ jobs:
id: attestation_push
if: ${{ success() }}
run: |
attestation_sha=$(chainloop attestation push --attestation-id ${{ needs.init_attestation.outputs.attestation_id }} -o json | jq -r '.digest')
chainloop attestation push --attestation-id ${{ needs.init_attestation.outputs.attestation_id }}
attestation_sha=$(chainloop wf run describe --id ${{ needs.init_attestation.outputs.attestation_id }} -o json | jq -r '.digest')
# check that the command succeeded
[ -n "${attestation_sha}" ] || exit 1
[ -n "$attestation_sha" ] || exit 1
echo "attestation_sha=$attestation_sha" >> $GITHUB_OUTPUT
- name: Mark attestation as failed
Expand Down

0 comments on commit b5618bf

Please sign in to comment.