File tree Expand file tree Collapse file tree 5 files changed +41
-0
lines changed Expand file tree Collapse file tree 5 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 42
42
uses : actions/checkout@v4
43
43
with :
44
44
ref : ${{ inputs.ref }}
45
+ persist-credentials : false
45
46
- name : Set up Python
46
47
uses : actions/setup-python@v5
47
48
with :
Original file line number Diff line number Diff line change 22
22
- uses : actions/checkout@v4
23
23
with :
24
24
ref : ${{ inputs.ref }}
25
+ persist-credentials : false
25
26
- name : Set up Python
26
27
uses : actions/setup-python@v5
27
28
with :
Original file line number Diff line number Diff line change 13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v4
16
+ with :
17
+ persist-credentials : false
16
18
- uses : actions/setup-python@v5
17
19
with :
18
20
python-version : ' 3.10'
29
31
runs-on : ubuntu-latest
30
32
steps :
31
33
- uses : actions/checkout@v4
34
+ with :
35
+ persist-credentials : false
32
36
- uses : actions/setup-python@v5
33
37
with :
34
38
cache : ' pip'
Original file line number Diff line number Diff line change 23
23
steps :
24
24
- name : Checkout django-mongodb
25
25
uses : actions/checkout@v4
26
+ with :
27
+ persist-credentials : false
26
28
- name : install the django-mongodb backend
27
29
run : |
28
30
pip3 install --upgrade pip
33
35
repository : ' mongodb-forks/django'
34
36
ref : ' mongodb-5.0.x'
35
37
path : ' django_repo'
38
+ persist-credentials : false
36
39
- name : Install system packages for Django's Python test dependencies
37
40
run : |
38
41
sudo apt-get update
Original file line number Diff line number Diff line change
1
+ name : GitHub Actions Security Analysis with zizmor
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+ branches : ["**"]
8
+
9
+ jobs :
10
+ zizmor :
11
+ name : zizmor latest via Cargo
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ security-events : write
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+ with :
19
+ persist-credentials : false
20
+ - name : Setup Rust
21
+ uses : actions-rust-lang/setup-rust-toolchain@v1
22
+ - name : Get zizmor
23
+ run : cargo install zizmor
24
+ - name : Run zizmor
25
+ run : zizmor --format sarif . > results.sarif
26
+ env :
27
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ - name : Upload SARIF file
29
+ uses : github/codeql-action/upload-sarif@v3
30
+ with :
31
+ sarif_file : results.sarif
32
+ category : zizmor
You can’t perform that action at this time.
0 commit comments