Add post-build security scan

This commit is contained in:
hackercat
2021-02-07 02:09:03 +00:00
parent 8b7c09c340
commit 8b33c584e4
+15
View File
@@ -97,3 +97,18 @@ jobs:
DISTRIB_ID=${{ matrix.DISTRIB_ID }}
DISTRIB_RELEASE=${{ steps.ubuntu_latest.outputs.UBUNTU_LATEST }}
NODE_VERSION=${{ matrix.NODE_VERSION }}
scan:
runs-on: ubuntu-latest
needs:
- act-base
strategy:
max-parallel: 4
fail-fast: false
matrix:
DISTRIB_ID: [ubuntu]
DISTRIB_RELEASE: [latest, 20.04, 18.04, 16.04]
IMAGE_TYPE: [act, runner]
steps:
- uses: azure/container-scan@v0
with:
image-name: ghcr.io/catthehacker/${{ matrix.DISTRIB_ID }}:${{ matrix.IMAGE_TYPE }}-${{ matrix.DISTRIB_RELEASE }}