Skip to content

Commit

Permalink
ci: use correct image tag for trivy scan and change cron job to Monda…
Browse files Browse the repository at this point in the history
…y morning
  • Loading branch information
BernhardFuchs committed Apr 17, 2024
1 parent ec7f256 commit 3a2e571
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '25 16 * * 5'
- cron: '00 02 * * 1'

permissions:
contents: read
Expand All @@ -29,14 +29,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Build an image from Dockerfile
run: |
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
with:
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
image-ref: 'docker.io/universalresolver/driver-did-dns:latest'
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
Expand Down

0 comments on commit 3a2e571

Please # to comment.