File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ jobs:
236236 - name : Run Trivy vulnerability scanner
237237 uses : aquasecurity/trivy-action@master
238238 with :
239- image-ref : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ github.sha }}
239+ image-ref : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
240240 format : ' sarif'
241241 output : ' trivy-results.sarif'
242242 severity : ' CRITICAL,HIGH,MEDIUM'
@@ -250,7 +250,7 @@ jobs:
250250 - name : Run Trivy for JSON output
251251 uses : aquasecurity/trivy-action@master
252252 with :
253- image-ref : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ github.sha }}
253+ image-ref : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
254254 format : ' json'
255255 output : ' trivy-results.json'
256256
@@ -286,7 +286,7 @@ jobs:
286286 docker run -d --name solar-system-app \
287287 -p 3000:3000 \
288288 -e MONGO_URI="${{ secrets.MONGO_URI }}" \
289- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ github.sha }}
289+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
290290
291291 # Wait for application to be ready
292292 sleep 10
You can’t perform that action at this time.
0 commit comments