mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
add docker image scanning
This commit is contained in:
parent
93d4b7af0d
commit
3dadef436e
9
.github/workflows/docker-publish.yml
vendored
9
.github/workflows/docker-publish.yml
vendored
|
|
@ -58,6 +58,15 @@ jobs:
|
|||
run: nix build .#ociImage
|
||||
- name: Load Docker image
|
||||
run: docker load < result
|
||||
- name: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@0.28.0
|
||||
with:
|
||||
image-ref: 'ghcr.io/$IMAGE_NAME'
|
||||
format: 'table'
|
||||
exit-code: '1'
|
||||
ignore-unfixed: true
|
||||
vuln-type: 'os,library'
|
||||
severity: 'CRITICAL,HIGH'
|
||||
- name: Push image to registry
|
||||
if: github.event_name != 'pull_request'
|
||||
run: docker push ghcr.io/$IMAGE_NAME -a
|
||||
|
|
|
|||
Loading…
Reference in a new issue