Skip to content

Commit 11abdac

Browse files
committed
FIX scheduled trivy GH action
1 parent 9ff192d commit 11abdac

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/scheduled-trivy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ jobs:
2929
run: |
3030
docker image build --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} .
3131
32-
- name: Run Trivy vulnerability scanner
32+
- name: Run Trivy vulnerability scanner (sarif report)
3333
uses: aquasecurity/trivy-action@0.35.0
3434
with:
35-
image-ref: 'appwrite/docker-base:${{ github.sha }}'
36-
format: 'template'
37-
template: '@/contrib/sarif.tpl'
35+
format: 'sarif'
36+
image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}'
3837
output: 'trivy-image-results.sarif'
3938
severity: 'CRITICAL,HIGH'
4039

0 commit comments

Comments
 (0)