mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2025-12-08 08:23:34 -05:00
Add image scanning to Github Actions
This commit is contained in:
7
.github/workflows/update-base-image.yml
vendored
7
.github/workflows/update-base-image.yml
vendored
@@ -47,6 +47,13 @@ jobs:
|
|||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
|
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
|
||||||
cache-to: type=inline
|
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
|
name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
7
.github/workflows/update-image-on-push.yml
vendored
7
.github/workflows/update-image-on-push.yml
vendored
@@ -48,6 +48,13 @@ jobs:
|
|||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
|
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
|
||||||
cache-to: type=inline
|
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
|
name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
Reference in New Issue
Block a user