Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5fcb81b

Browse files
committed
chore(ci): address more zizmor violations
1 parent 63037a1 commit 5fcb81b

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
name: pypi-test
165165
url: https://test.pypi.org/p/technical
166166
permissions:
167-
id-token: write
167+
id-token: write # needed for pypi publish action
168168

169169
steps:
170170

@@ -190,7 +190,7 @@ jobs:
190190
name: pypi
191191
url: https://pypi.org/p/technical
192192
permissions:
193-
id-token: write
193+
id-token: write # needed for pypi publish action
194194

195195
steps:
196196

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
# disable permissions for all of the available permissions
1212
permissions: {}
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
1417

1518
jobs:
1619
build-docs:
@@ -21,7 +24,7 @@ jobs:
2124
steps:
2225
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2326
with:
24-
persist-credentials: true
27+
persist-credentials: false
2528

2629
- name: Set up Python
2730
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6

.github/workflows/zizmor_action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
name: Run zizmor 🌈
2121
runs-on: ubuntu-latest
2222
permissions:
23-
security-events: write
24-
contents: read # only needed for private repos
25-
actions: read # only needed for private repos
23+
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
24+
# contents: read # Only needed for private repos. Needed to clone the repo.
25+
# actions: read # Only needed for private repos. Needed for upload-sarif to read workflow run info.
2626
steps:
2727
- name: Checkout repository
2828
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

0 commit comments

Comments
 (0)