File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ name: Test & build Docker image
22
33on :
44 push :
5- branches : [ master ]
6- tags : ['*' ]
5+ branches : [master]
6+ tags : ["*" ]
77 pull_request :
88 schedule :
9- - cron : ' 0 2 * * 6'
9+ - cron : " 0 2 * * 6"
1010
1111env :
1212 IMAGE_NAME : trafex/php-nginx
@@ -34,23 +34,23 @@ jobs:
3434
3535 - name : Smoke test image
3636 run : |-
37- docker- compose -f docker-compose.test.yml up -d app
37+ docker compose -f docker-compose.test.yml up -d app
3838 sleep 2
39- docker- compose -f docker-compose.test.yml run sut
39+ docker compose -f docker-compose.test.yml run sut
4040
4141 - name : Run Trivy vulnerability scanner
4242 uses : aquasecurity/trivy-action@master
4343 with :
44- image-ref : ' ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}'
45- format : ' template'
46- template : ' @/contrib/sarif.tpl'
47- output : ' trivy-results.sarif'
44+ image-ref : " ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"
45+ format : " template"
46+ template : " @/contrib/sarif.tpl"
47+ output : " trivy-results.sarif"
4848
4949 - name : Upload Trivy scan results to GitHub Security tab
5050 if : github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
5151 uses : github/codeql-action/upload-sarif@v3
5252 with :
53- sarif_file : ' trivy-results.sarif'
53+ sarif_file : " trivy-results.sarif"
5454
5555 - name : Login to Docker Hub
5656 if : (github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule' )) || contains(github.ref, 'refs/tags/')
You can’t perform that action at this time.
0 commit comments