Skip to content

Commit

Permalink
allow all scans to run
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Jun 5, 2024
1 parent b837ada commit fa37221
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
run:
echo "value=$(jq -r '.version' < dist/metadata.json)" >> $GITHUB_OUTPUT
- uses: aquasecurity/trivy-action@master
id: scan-alpine
continue-on-error: true
with:
# Using an explicit tag rather than ld-relay:latest to ensure we're scanning the local image that we just built.
# It's not clear why, but it seems goreleaser doesn't create the :latest tag when skipping the publish step
Expand All @@ -73,14 +75,21 @@ jobs:
exit-code: '1'
ignore-unfixed: true
- uses: aquasecurity/trivy-action@master
id: scan-distroless
continue-on-error: true
with:
image-ref: launchdarkly/ld-relay:${{ steps.image-tag.outputs.value }}-nonroot-static-debian12-amd64
format: 'table'
exit-code: '1'
ignore-unfixed: true
- uses: aquasecurity/trivy-action@master
continue-on-error: true
id: scan-debug-distroless
with:
image-ref: launchdarkly/ld-relay:${{ steps.image-tag.outputs.value }}-debug-nonroot-static-debian12-amd64
format: 'table'
exit-code: '1'
ignore-unfixed: true
- name: Fail if any of scan-alpine, scan-distroless, or scan-distroless-debug failed
if: ${{ steps.scan-alpine.outcome != 'success' || steps.scan-distroless.outcome != 'success' || steps.scan-debug-distroless.outcome != 'success' }}
run: exit 1

0 comments on commit fa37221

Please sign in to comment.