File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636 steps :
3737 - name : Checkout repository
38- uses : actions/checkout@v3
38+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
39+ with :
40+ persist-credentials : false
3941
4042 # Install the cosign tool except on PR
4143 # https://github.com/sigstore/cosign-installer
Original file line number Diff line number Diff line change 55 schedule :
66 - cron : ' 0 7 * * 1' # run once a week on monday morning
77
8+ permissions : {}
9+
810jobs :
911 stubtest :
1012 runs-on : ubuntu-latest
13+ permissions :
14+ contents : read
1115
1216 steps :
1317 - name : Install packages
@@ -30,10 +34,12 @@ jobs:
3034 postgresql-contrib
3135
3236 - name : Checkout repo
33- uses : actions/checkout@v3
37+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
38+ with :
39+ persist-credentials : false
3440
3541 - name : Set up Python
36- uses : actions/setup-python@v4
42+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
3743 with :
3844 python-version : ' 3.10'
3945
Original file line number Diff line number Diff line change 55 push :
66 pull_request :
77
8+ permissions : {}
9+
810jobs :
911
1012 tests :
1113 strategy :
1214 fail-fast : false
1315
1416 runs-on : ubuntu-latest
17+ permissions :
18+ contents : read
1519
1620 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1721 name : Tests
3741 postgresql-contrib
3842
3943 - name : Checkout repo
40- uses : actions/checkout@v3
44+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
45+ with :
46+ persist-credentials : false
4147
4248 - name : Get branch name (merge)
4349 if : github.event_name != 'pull_request'
5460 >> $GITHUB_ENV
5561
5662 - name : Set up Python
57- uses : actions/setup-python@v4
63+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
5864 with :
5965 python-version : ' 3.10'
6066
Original file line number Diff line number Diff line change 1+ # https://docs.zizmor.sh/integrations/#github-actions
2+ name : Zizmor (GitHub Actions Security)
3+
4+ on :
5+ push :
6+ paths :
7+ - ' .github/workflows/**'
8+ pull_request :
9+ paths :
10+ - ' .github/workflows/**'
11+
12+ permissions : {}
13+
14+ concurrency :
15+ group : zizmor-${{ github.ref }}
16+ cancel-in-progress : true
17+
18+ jobs :
19+ zizmor :
20+ runs-on : ubuntu-latest
21+ permissions :
22+ contents : read # Required for private repos
23+ actions : read # Required for private repos
24+ steps :
25+ - name : Checkout repository
26+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
27+ with :
28+ persist-credentials : false
29+
30+ - name : Run zizmor
31+ uses : zizmorcore/zizmor-action@6599ee8b7a49aef6a770f63d261d214911a7ce02 # v0.6.0
32+ with :
33+ advanced-security : false
Original file line number Diff line number Diff line change 5555 rev : v8.24.2
5656 hooks :
5757 - id : gitleaks
58+ - repo : https://github.com/zizmorcore/zizmor-pre-commit
59+ rev : v1.28.0
60+ hooks :
61+ - id : zizmor
You can’t perform that action at this time.
0 commit comments