File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 build-and-scan :
1010 runs-on : ubuntu-latest
1111 env :
12- DOCKER_CONTEXT : .
13- DOCKERFILE : Dockerfile
14- DOCKER_LOAD : true
15- TAGS : sample-python-app:${{ github.sha }}
12+ DOCKER_PATH_CONTEXT : .
13+ DOCKER_BUILD_DOCKERFILE : Dockerfile
14+ DOCKER_LOAD_BOOL : true
15+ DOCKER_TAGS : sample-python-app:${{ github.sha }}
1616 steps :
1717 - name : Checkout repository
1818 uses : actions/checkout@v4
@@ -24,14 +24,14 @@ jobs:
2424 id : build-image
2525 uses : docker/build-push-action@v6
2626 with :
27- context : ${{ env.DOCKER_CONTEXT }}
28- file : ${{ env.DOCKERFILE }}
29- load : ${{ env.DOCKER_LOAD }}
30- tags : ${{ env.TAGS }}
27+ context : ${{ env.DOCKER_PATH_CONTEXT }}
28+ file : ${{ env.DOCKER_BUILD_DOCKERFILE }}
29+ load : ${{ env.DOCKER_LOAD_BOOL }}
30+ tags : ${{ env.DOCKER_TAGS }}
3131 - name : Run Trivy vulnerability scanner
3232 uses : aquasecurity/trivy-action@0.33.1
3333 with :
34- image-ref : ${{ env.TAGS }}
34+ image-ref : ${{ env.DOCKER_TAGS }}
3535 format : ' table'
3636 exit-code : ' 1'
3737 ignore-unfixed : true
You can’t perform that action at this time.
0 commit comments