Skip to content

Commit

Permalink
Merge pull request #590 from apigee/issue589
Browse files Browse the repository at this point in the history
chore: add container scanning #589
  • Loading branch information
ssvaidyanathan authored Nov 19, 2024
2 parents b5adac1 + 88e0f19 commit fe94c29
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,15 @@ jobs:
subject-digest: ${{ steps.build-and-push.outputs.digest }}
sbom-path: 'sbom.spdx.json'
push-to-registry: true

- name: Scan apigeecli container
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 #0.28.0
with:
image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}'
format: 'sarif'
output: 'trivy-results.sarif'

- name: Upload Trivy apigeecli SARIF Report
uses: github/codeql-action/upload-sarif@4f3212b61783c3c68e8309a0f18a699764811cda
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit fe94c29

Please sign in to comment.