File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,20 +47,20 @@ jobs:
47
47
output : ' trivy-results.sarif'
48
48
49
49
- name : Upload Trivy scan results to GitHub Security tab
50
- if : github.ref == 'refs/heads/master' && github.event_name == 'push'
50
+ if : github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'schedule')
51
51
uses : github/codeql-action/upload-sarif@v2
52
52
with :
53
53
sarif_file : ' trivy-results.sarif'
54
54
55
55
- name : Login to Docker Hub
56
- if : (github.ref == 'refs/heads/master' && github.event_name == 'push') || contains(github.ref, 'refs/tags/')
56
+ if : (github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'schedule' ) || contains(github.ref, 'refs/tags/')
57
57
uses : docker/login-action@v2
58
58
with :
59
59
username : ${{ secrets.DOCKERHUB_USERNAME }}
60
60
password : ${{ secrets.DOCKERHUB_TOKEN }}
61
61
62
62
- name : Build multi-arch image and push latest tag
63
- if : github.ref == 'refs/heads/master' && github.event_name == 'push'
63
+ if : github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'schedule')
64
64
run : |-
65
65
docker buildx build \
66
66
--cache-from=$IMAGE_NAME:latest \
You can’t perform that action at this time.
0 commit comments