Skip to content

Commit

Permalink
ci(container): add Anchor/grype based vuln scan for dataverse-k8s image
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Jul 28, 2021
1 parent 8dc4366 commit b7d5bc4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ghcr_push_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ jobs:
- name: Build images
run: mvn -Pct package -Dct.build.tag="${IMAGE_TAG}" -Dct.build.registry="${REGISTRY}"

- name: Scan Dataverse image
id: scan
uses: anchore/scan-action@v2
with:
image: "${{ env.REGISTRY }}/gdcc/dataverse-k8s:${{ env.IMAGE_TAG }}"
# fail-build: true
severity-cutoff: critical
acs-report-enable: true
- name: upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ steps.scan.outputs.sarif }}

- name: Log in to the Container registry
uses: docker/login-action@v1
if: ${{ github.event_name == 'push' }}
Expand Down

0 comments on commit b7d5bc4

Please sign in to comment.