File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,55 @@ jobs:
123
123
format : ' sarif'
124
124
output : ' trivy-results.sarif'
125
125
126
+ - name : Upload Trivy scan results to GitHub Security tab
127
+ uses : github/codeql-action/upload-sarif@v2
128
+ with :
129
+ sarif_file : ' trivy-results.sarif'
130
+
131
+ scan_psql_init :
132
+ name : scan_psql_init
133
+ runs-on : ubuntu-20.04
134
+ steps :
135
+
136
+ - name : Checkout code
137
+ uses : actions/checkout@v3
138
+
139
+ - name : Build an image from Dockerfile
140
+ run : |
141
+ docker build -t keitaro/psql-init:${{ github.sha }} -f ./images/psql-init/Dockerfile ./images/psql-init/
142
+
143
+ - name : Run Trivy vulnerability scanner
144
+ uses : aquasecurity/trivy-action@master
145
+ with :
146
+ image-ref : ' keitaro/psql-init:${{ github.sha }}'
147
+ format : ' sarif'
148
+ output : ' trivy-results.sarif'
149
+
150
+ - name : Upload Trivy scan results to GitHub Security tab
151
+ uses : github/codeql-action/upload-sarif@v2
152
+ with :
153
+ sarif_file : ' trivy-results.sarif'
154
+
155
+
156
+ scan_datapusher :
157
+ name : scan_datapusher
158
+ runs-on : ubuntu-20.04
159
+ steps :
160
+
161
+ - name : Checkout code
162
+ uses : actions/checkout@v3
163
+
164
+ - name : Build an image from Dockerfile
165
+ run : |
166
+ docker build -t keitaro/datapusher:${{ github.sha }} -f ./images/datapusher/Dockerfile ./images/datapusher/
167
+
168
+ - name : Run Trivy vulnerability scanner
169
+ uses : aquasecurity/trivy-action@master
170
+ with :
171
+ image-ref : ' keitaro/datapusher:${{ github.sha }}'
172
+ format : ' sarif'
173
+ output : ' trivy-results.sarif'
174
+
126
175
- name : Upload Trivy scan results to GitHub Security tab
127
176
uses : github/codeql-action/upload-sarif@v2
128
177
with :
You can’t perform that action at this time.
0 commit comments