Skip to content

Commit

Permalink
Merge branch 'main' into Mionsz-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
agatameller authored Feb 10, 2025
2 parents d11133e + d1b247f commit cc5ec78
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Trivy
on:
schedule:
- cron: "0 0 * * *"
- cron: "0 23 * * *"
pull_request:
branches:
- main
Expand Down Expand Up @@ -34,10 +35,23 @@ jobs:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
steps:
- name: Checkout code
if: github.event_name == 'schedule' && github.event.schedule == '0 23 * * '
uses: actions/checkout@v2
with:
ref: maint-25.02 # tmp branch
- name: Checkout code
if: github.event_name == 'schedule' && github.event.schedule == '0 0 * * '
uses: actions/checkout@v2
with:
ref: main

- name: Checkout code
if: github.event_name != 'schedule'
uses: actions/checkout@v2
with:
ref: ${{ inputs.branch }}


- name: Run Trivy vulnerability scanner with sarif output
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # v0.28.0
with:
Expand Down

0 comments on commit cc5ec78

Please sign in to comment.