File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 schedule :
99 - cron : 00 4 * * 4
1010
11+ permissions :
12+ contents : read
13+ packages : write
14+
1115jobs :
1216 build :
1317 runs-on : ubuntu-latest
3337 password : ${{ secrets.GITHUB_TOKEN }}
3438
3539 - name : Build the container image
36- run : docker build . --tag php-docker-base:trivytemp --file Dockerfile.${{ matrix.php }}
37-
38- - name : Run Trivy vulnerability scanner
39- uses : aquasecurity/trivy-action@master
40- with :
41- image-ref : php-docker-base:trivytemp
42- format : ' table'
43- exit-code : ' 1'
44- ignore-unfixed : true
45- vuln-type : ' os,library'
46- severity : ' CRITICAL,HIGH'
47-
48- - name : Retag new image with latest tag so we can push the scanned version
49- run : docker image tag php-docker-base:trivytemp "ghcr.io/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]'):${{ matrix.php }}"
40+ run : docker build . --tag "ghcr.io/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]'):${{ matrix.php }}" --file Dockerfile.${{ matrix.php }}
5041
5142 - name : Push with commit ${{ matrix.php }} tag
5243 run : docker push "ghcr.io/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]'):${{ matrix.php }}"
You can’t perform that action at this time.
0 commit comments