File tree Expand file tree Collapse file tree 4 files changed +47
-14
lines changed Expand file tree Collapse file tree 4 files changed +47
-14
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ permissions:
88jobs :
99 dependabot :
1010 runs-on : ubuntu-latest
11- if : github.actor == 'dependabot[bot]'
11+ if : github.actor == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
1212 steps :
1313 - name : Dependabot metadata
1414 id : metadata
Original file line number Diff line number Diff line change 2020 contents : read
2121 steps :
2222 - name : Checkout code
23- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
2424 with :
2525 persist-credentials : false
2626 # This will post a comment on PRs when poetry.lock changes
@@ -39,13 +39,13 @@ jobs:
3939
4040 steps :
4141 - name : Checkout code
42- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
42+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
4343 with :
4444 persist-credentials : false
4545
4646 - name : Set up Homebrew
4747 id : set-up-homebrew
48- uses : Homebrew/actions/setup-homebrew@master
48+ uses : Homebrew/actions/setup-homebrew@7f6df1cd36597249cbf9810ff3aeff47edf8243b
4949
5050 - name : Add Poetry and pyenv setup
5151 run : |
Original file line number Diff line number Diff line change @@ -13,16 +13,48 @@ jobs:
1313 auto-update :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
16+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
1717 with :
1818 persist-credentials : false
1919
20- - uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
20+ - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5
2121
22- - uses : browniebroke/pre-commit-autoupdate-action@deb83bfe0036e1116ee4e241d6220274d69b1f9e # v1.0.0
22+ - uses : browniebroke/pre-commit-autoupdate-action@f5c3ec85103b9f8f9be60b9c006cec763d2bdd02 # v1.0.1
2323 env :
2424 SKIP : " poetry-version-resetter"
2525
26+ - name : Upload changed .pre-commit-config.yaml
27+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
28+ with :
29+ name : " .pre-commit-config.yaml"
30+ path : " .pre-commit-config.yaml"
31+
32+ # This second, dependent job is necessary to isolate the content:write permissions that the auto-update job doesn't need.
33+ pr :
34+ needs : auto-update
35+ permissions :
36+ contents : write
37+ actions : none
38+ checks : none
39+ deployments : none
40+ issues : none
41+ discussions : none
42+ packages : none
43+ pull-requests : none
44+ repository-projects : none
45+ security-events : none
46+ statuses : none
47+ runs-on : ubuntu-latest
48+ steps :
49+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
50+ with :
51+ persist-credentials : false
52+
53+ - name : Download changed .pre-commit-config.yaml
54+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
55+ with :
56+ name : " .pre-commit-config.yaml"
57+
2658 - uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
2759 if : always()
2860 with :
Original file line number Diff line number Diff line change 66 pull_request :
77 branches : ["**"]
88
9+ permissions : {}
10+
911jobs :
1012 zizmor :
1113 name : zizmor latest via PyPI
1214 runs-on : ubuntu-latest
1315 permissions :
1416 security-events : write
15- # required for workflows in private repositories
16- contents : read
17- actions : read
17+ contents : read # only needed for private repos
18+ actions : read # only needed for private repos
1819 steps :
1920 - name : Checkout repository
20- uses : actions/checkout@v4
21+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2122 with :
2223 persist-credentials : false
2324
2425 - name : Install the latest version of uv
25- uses : astral-sh/setup-uv@v5
26+ uses : astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
2627
2728 - name : Run zizmor 🌈
28- run : uvx zizmor --format sarif . > results.sarif
29+ run : uvx zizmor --format= sarif . > results.sarif
2930 env :
3031 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3132
3233 - name : Upload SARIF file
33- uses : github/codeql-action/upload-sarif@v3
34+ uses : github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
3435 with :
3536 sarif_file : results.sarif
3637 category : zizmor
You can’t perform that action at this time.
0 commit comments