File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : GuardDog
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ permissions :
12+ contents : read
13+
14+ jobs :
15+ guarddog :
16+ permissions :
17+ contents : read # for actions/checkout to fetch code
18+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
19+ name : Scan dependencies
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - uses : actions/checkout@v6
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v6
27+ with :
28+ python-version : " 3.10"
29+
30+ - name : Install GuardDog
31+ run : pip install guarddog
32+
33+ - run : guarddog pypi verify requirements.txt --output-format sarif --exclude-rules repository_integrity_mismatch > guarddog.sarif
34+
35+ - name : Upload SARIF file to GitHub
36+ uses : github/codeql-action/upload-sarif@v3
37+ with :
38+ category : guarddog-builtin
39+ sarif_file : guarddog.sarif
You can’t perform that action at this time.
0 commit comments