Skip to content

Commit

Permalink
Update snyk-container.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cniweb authored Feb 3, 2025
1 parent f3c63d3 commit 66db2ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/snyk-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '21 8 * * 1'
- cron: '16 14 * * 0'

permissions:
contents: read
Expand All @@ -30,9 +30,10 @@ jobs:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build a Docker image
run: docker build -t cniweb/srbminer-multi .
- name: Run Snyk to check Docker image for vulnerabilities
Expand All @@ -49,6 +50,6 @@ jobs:
image: cniweb/srbminer-multi
args: --file=Dockerfile
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif

0 comments on commit 66db2ab

Please sign in to comment.