Skip to content

Commit c5763a6

Browse files
Pin Trivy action to specific commit SHA
Updated Trivy action to a specific commit SHA for security.
1 parent 1f4a10f commit c5763a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: docker build -t ${{ env.IMAGE_NAME }}:${{ github.sha }} .
3939

4040
- name: Run Trivy vulnerability scanner
41-
uses: aquasecurity/trivy-action@PASTE_SHA_HERE # v0.36.0 — pinned per the March 2026 supply-chain compromise
41+
uses: aquasecurity/trivy-action@a9c7b0f06e461e9d4b4d1711f154ee024b8d7ab8 # v0.36.0 — pinned per the March 2026 supply-chain compromise
4242
with:
4343
image-ref: '${{ env.IMAGE_NAME }}:${{ github.sha }}'
4444
format: 'sarif'
@@ -67,4 +67,4 @@ jobs:
6767
docker tag ${{ env.IMAGE_NAME }}:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
6868
docker tag ${{ env.IMAGE_NAME }}:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
6969
docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
70-
docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
70+
docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest

0 commit comments

Comments
 (0)