Skip to content

Commit 17f3c9f

Browse files
committed
wip setup guarddog
1 parent 4880ad6 commit 17f3c9f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/guarddog.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)