Skip to content

Commit

Permalink
ci: add container scanning to default checks
Browse files Browse the repository at this point in the history
Fixes hyperledger-cacti#1876

Signed-off-by: zondervancalvez <zondervan.v.calvez@accenture.com>
  • Loading branch information
zondervancalvez committed May 11, 2022
1 parent af728ed commit a5d7cfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/azure-container-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:


- name: Build Image from Dockerfile
run: docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME_1 .
run: DOCKER_BUILDKIT=1 docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME_1 .

- uses: Azure/container-scan@v0.1
name: Scan image for vulnerabilities
Expand All @@ -52,15 +52,15 @@ jobs:
# (Required) The token to use to make API calls to GitHub.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./whitepaper/Dockerfile
DOCKERFILE_PATH: ./packages/cactus-cmd-api-server/Dockerfile

- uses: actions/checkout@v1
- name: Login to DockerHub Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin


- name: Build Images from Dockerfile
run: docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME_2 .
run: DOCKER_BUILDKIT=1 docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME_2 .

- uses: Azure/container-scan@v0.1
name: Scan image for vulnerabilities
Expand Down

0 comments on commit a5d7cfb

Please sign in to comment.