File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Scout repository scan
2+ on :
3+ workflow_dispatch : {}
4+ schedule :
5+ # Runs every Monday at 00:00 UTC
6+ - cron : ' 0 0 * * 1'
7+ permissions :
8+ contents : read
9+ jobs :
10+ scout_repo_scan :
11+ if : github.actor != 'dependabot[bot]'
12+ permissions :
13+ contents : read
14+ security-events : write
15+ pull-requests : write
16+
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout Repository
20+ uses : actions/checkout@v4
21+
22+ - name : Analyze for critical and high CVEs
23+ id : docker-scout-cves
24+ if : ${{ github.event_name != 'pull_request_target' }}
25+ uses : docker/scout-action@v1
26+ continue-on-error : true
27+ with :
28+ command : cves
29+ image : fs://../${{ github.event.repository.name }}
30+ sarif-file : sarif.output.json
31+ summary : true
32+ ignore-base : true
33+ dockerhub-user : ${{ secrets.DOCKERHUB_USER }}
34+ dockerhub-password : ${{ secrets.DOCKERHUB_RW_TOKEN }}
35+ github-token : ${{ secrets.GITHUB_TOKEN }}
36+
37+ - name : Upload SARIF result
38+ uses : github/codeql-action/upload-sarif@v3
39+ with :
40+ sarif_file : sarif.output.json
You can’t perform that action at this time.
0 commit comments