@@ -107,10 +107,6 @@ jobs:
107
107
- name : Checkout code
108
108
uses : actions/checkout@v2
109
109
110
- - name : Build an image from Dockerfile
111
- run : |
112
- docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
113
-
114
110
- name : Run Trivy vulnerability scanner in repo mode
115
111
uses : aquasecurity/trivy-action@master
116
112
with :
@@ -147,11 +143,7 @@ jobs:
147
143
steps:
148
144
- name: Checkout code
149
145
uses: actions/checkout@v2
150
-
151
- - name: Build an image from Dockerfile
152
- run: |
153
- docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
154
-
146
+
155
147
- name: Run Trivy vulnerability scanner
156
148
uses: aquasecurity/trivy-action@master
157
149
with:
@@ -188,15 +180,11 @@ jobs:
188
180
steps:
189
181
- name: Checkout code
190
182
uses: actions/checkout@v2
191
-
192
- - name: Build an image from Dockerfile
193
- run: |
194
- docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
195
-
183
+
196
184
- name: Run Trivy vulnerability scanner
197
185
uses: aquasecurity/trivy-action@master
198
186
with:
199
- image-ref: 'docker.io/my-organization/my-app :${{ github.sha }}'
187
+ image-ref: 'aws_account_id.dkr.ecr.region.amazonaws.com/imageName :${{ github.sha }}'
200
188
format: 'template'
201
189
template: '@/contrib/sarif.tpl'
202
190
output: 'trivy-results.sarif'
@@ -229,11 +217,7 @@ jobs:
229
217
steps:
230
218
- name: Checkout code
231
219
uses: actions/checkout@v2
232
-
233
- - name: Build an image from Dockerfile
234
- run: |
235
- docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
236
-
220
+
237
221
- name: Run Trivy vulnerability scanner
238
222
uses: aquasecurity/trivy-action@master
239
223
with:
@@ -267,11 +251,7 @@ jobs:
267
251
steps:
268
252
- name: Checkout code
269
253
uses: actions/checkout@v2
270
-
271
- - name: Build an image from Dockerfile
272
- run: |
273
- docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
274
-
254
+
275
255
- name: Run Trivy vulnerability scanner
276
256
uses: aquasecurity/trivy-action@master
277
257
with:
0 commit comments