Add image scanning to Github Actions

This commit is contained in:
Seth Simmons
2021-03-26 11:04:33 -04:00
parent 0fe6ca6720
commit 78cf6f182b
2 changed files with 14 additions and 0 deletions

View File

@@ -47,6 +47,13 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
cache-to: type=inline
-
name: Scan new image and output results
uses: Azure/container-scan@v0
with:
image-name: ${{ secrets.DOCKER_USERNAME }}/simple-monerod:${{ steps.get_tag.outputs.tag }}
run-quality-checks: true
severity-threshold: MEDIUM
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View File

@@ -48,6 +48,13 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
cache-to: type=inline
-
name: Scan new image and output results
uses: Azure/container-scan@v0
with:
image-name: ${{ secrets.DOCKER_USERNAME }}/simple-monerod:${{ steps.get_tag.outputs.tag }}
run-quality-checks: true
severity-threshold: MEDIUM
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}