Skip to content

Commit 8106926

Browse files
committed
container scanning
1 parent 234a62f commit 8106926

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/devsecops-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)