Skip to content

Commit 392ba60

Browse files
authored
chore(ci): comments for pinned actions (#984)
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 0daf3f9 commit 392ba60

3 files changed

Lines changed: 62 additions & 63 deletions

File tree

.github/workflows/python.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ jobs:
3333
steps:
3434
- name: Checkout
3535
# see https://github.com/actions/checkout
36-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
36+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3737
with:
3838
persist-credentials: false
3939
- name: Setup Python Environment
4040
# see https://github.com/actions/setup-python
41-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
41+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4242
with:
4343
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
4444
architecture: 'x64'
4545
- name: Install poetry
46-
# see https://github.com/marketplace/actions/setup-poetry
47-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
46+
# see https://github.com/Gr1N/setup-poetry
47+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
4848
with:
4949
poetry-version: ${{ env.POETRY_VERSION }}
5050
- name: Install dependencies
@@ -59,18 +59,18 @@ jobs:
5959
steps:
6060
- name: Checkout
6161
# see https://github.com/actions/checkout
62-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
62+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6363
with:
6464
persist-credentials: false
6565
- name: Setup Python Environment
6666
# see https://github.com/actions/setup-python
67-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
67+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6868
with:
6969
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
7070
architecture: 'x64'
7171
- name: Install poetry
72-
# see https://github.com/marketplace/actions/setup-poetry
73-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
72+
# see https://github.com/Gr1N/setup-poetry
73+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
7474
with:
7575
poetry-version: ${{ env.POETRY_VERSION }}
7676
- name: Install dependencies
@@ -85,18 +85,18 @@ jobs:
8585
steps:
8686
- name: Checkout
8787
# see https://github.com/actions/checkout
88-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
88+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8989
with:
9090
persist-credentials: false
9191
- name: Setup Python Environment
9292
# see https://github.com/actions/setup-python
93-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
93+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
9494
with:
9595
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
9696
architecture: 'x64'
9797
- name: Install poetry
98-
# see https://github.com/marketplace/actions/setup-poetry
99-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
98+
# see https://github.com/Gr1N/setup-poetry
99+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
100100
with:
101101
poetry-version: ${{ env.POETRY_VERSION }}
102102
- name: Install dependencies
@@ -111,18 +111,18 @@ jobs:
111111
steps:
112112
- name: Checkout
113113
# see https://github.com/actions/checkout
114-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
114+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
115115
with:
116116
persist-credentials: false
117117
- name: Setup Python Environment
118118
# see https://github.com/actions/setup-python
119-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
119+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
120120
with:
121121
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
122122
architecture: 'x64'
123123
- name: Install poetry
124-
# see https://github.com/marketplace/actions/setup-poetry
125-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
124+
# see https://github.com/Gr1N/setup-poetry
125+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
126126
with:
127127
poetry-version: ${{ env.POETRY_VERSION }}
128128
- name: Install dependencies
@@ -149,18 +149,18 @@ jobs:
149149
steps:
150150
- name: Checkout
151151
# see https://github.com/actions/checkout
152-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
152+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
153153
with:
154154
persist-credentials: false
155155
- name: Setup Python Environment
156156
# see https://github.com/actions/setup-python
157-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
157+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
158158
with:
159159
python-version: ${{ matrix.python-version }}
160160
architecture: 'x64'
161161
- name: Install poetry
162-
# see https://github.com/marketplace/actions/setup-poetry
163-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
162+
# see https://github.com/Gr1N/setup-poetry
163+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
164164
with:
165165
poetry-version: ${{ env.POETRY_VERSION }}
166166
- name: Install dependencies
@@ -201,14 +201,14 @@ jobs:
201201
git config --global core.eol lf
202202
- name: Checkout
203203
# see https://github.com/actions/checkout
204-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
204+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
205205
with:
206206
persist-credentials: false
207207
- name: Create reports directory
208208
run: mkdir ${{ env.REPORTS_DIR }}
209209
- name: Setup Python Environment
210210
# see https://github.com/actions/setup-python
211-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
211+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
212212
with:
213213
python-version: ${{ matrix.python-version }}
214214
architecture: 'x64'
@@ -218,8 +218,8 @@ jobs:
218218
import sys
219219
print('Python %s on %s in %s' % (sys.version, sys.platform, sys.getdefaultencoding()))
220220
- name: Install poetry
221-
# see https://github.com/marketplace/actions/setup-poetry
222-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
221+
# see https://github.com/Gr1N/setup-poetry
222+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
223223
with:
224224
poetry-version: ${{ env.POETRY_VERSION }}
225225
- name: Install dependencies
@@ -238,7 +238,7 @@ jobs:
238238
- name: Artifact reports
239239
if: ${{ ! cancelled() }}
240240
# see https://github.com/actions/upload-artifact
241-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
241+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
242242
with:
243243
name: ${{ env.TESTS_REPORTS_ARTIFACT }}-${{ matrix.os }}-py${{ matrix.python-version }}${{ matrix.toxenv-factors }}
244244
path: ${{ env.REPORTS_DIR }}
@@ -252,7 +252,7 @@ jobs:
252252
steps:
253253
- name: fetch test artifacts
254254
# see https://github.com/actions/download-artifact
255-
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
255+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
256256
with:
257257
path: ${{ env.REPORTS_DIR }}
258258
pattern: ${{ env.TESTS_REPORTS_ARTIFACT }}-*
@@ -262,7 +262,7 @@ jobs:
262262
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
263263
if: ${{ env.CODACY_PROJECT_TOKEN != '' }} ## see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-secrets
264264
# see https://github.com/codacy/codacy-coverage-reporter-action
265-
uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1
265+
uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1.3.0
266266
with:
267267
project-token: ${{ env.CODACY_PROJECT_TOKEN }}
268268
coverage-reports: ${{ env.REPORTS_DIR }}/coverage/*
@@ -281,12 +281,12 @@ jobs:
281281
steps:
282282
- name: Checkout
283283
# see https://github.com/actions/checkout
284-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
284+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
285285
with:
286286
persist-credentials: false
287287
- name: Setup Python Environment
288288
# see https://github.com/actions/setup-python
289-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
289+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
290290
with:
291291
python-version: '>=3.9 <=3.14' # supported version range
292292
- name: Validate Python Environment
@@ -295,8 +295,8 @@ jobs:
295295
import sys
296296
print('Python %s on %s in %s' % (sys.version, sys.platform, sys.getdefaultencoding()))
297297
- name: Install poetry
298-
# see https://github.com/marketplace/actions/setup-poetry
299-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
298+
# see https://github.com/Gr1N/setup-poetry
299+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
300300
with:
301301
poetry-version: ${{ env.POETRY_VERSION }}
302302
- name: Install package and prod dependencies

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ jobs:
4848
steps:
4949
- name: Checkout code
5050
# see https://github.com/actions/checkout
51-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
51+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5252
with:
5353
persist-credentials: false
5454
- name: Setup Python Environment
5555
# see https://github.com/actions/setup-python
56-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
56+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5757
with:
5858
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
5959
architecture: 'x64'
6060
- name: Install poetry
61-
# see https://github.com/marketplace/actions/setup-poetry
62-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
61+
# see https://github.com/Gr1N/setup-poetry
62+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
6363
with:
6464
poetry-version: ${{ env.POETRY_VERSION }}
6565
- name: Install dependencies
@@ -72,18 +72,18 @@ jobs:
7272
steps:
7373
- name: Checkout code
7474
# see https://github.com/actions/checkout
75-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
75+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7676
with:
7777
persist-credentials: false
7878
- name: Setup Python Environment
7979
# see https://github.com/actions/setup-python
80-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
80+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
8181
with:
8282
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
8383
architecture: 'x64'
8484
- name: Install poetry
85-
# see https://github.com/marketplace/actions/setup-poetry
86-
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
85+
# see https://github.com/Gr1N/setup-poetry
86+
uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
8787
with:
8888
poetry-version: ${{ env.POETRY_VERSION }}
8989
- name: Install dependencies
@@ -110,7 +110,7 @@ jobs:
110110
- name: Generate GitHub App Token
111111
id: release-bot-token
112112
# see https://github.com/actions/create-github-app-token
113-
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
113+
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
114114
with:
115115
# see https://github.com/organizations/CycloneDX/settings/apps/cyclonedx-releases
116116
client-id: 3335294
@@ -126,21 +126,21 @@ jobs:
126126

127127
- name: Checkout code
128128
# see https://github.com/actions/checkout
129-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
129+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
130130
with:
131131
fetch-depth: 0
132132
token: ${{ steps.release-bot-token.outputs.token }}
133133
persist-credentials: false
134134

135135
- name: Setup python
136136
# see https://github.com/actions/setup-python
137-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
137+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
138138
with:
139139
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
140140
architecture: 'x64'
141141
- name: Install and configure Poetry
142-
# See https://github.com/marketplace/actions/install-poetry-action
143-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
142+
# Seehttps://github.com/snok/install-poetry
143+
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
144144
with:
145145
version: ${{ env.POETRY_VERSION }}
146146
virtualenvs-create: true
@@ -155,7 +155,7 @@ jobs:
155155
id: release
156156
# see https://python-semantic-release.readthedocs.io/en/latest/automatic-releases/github-actions.html
157157
# see https://github.com/python-semantic-release/python-semantic-release
158-
uses: python-semantic-release/python-semantic-release@1a324000f2251a9e722e77b128bf72712653813f # v10.0.2
158+
uses: python-semantic-release/python-semantic-release@1a324000f2251a9e722e77b128bf72712653813f # v10.0.2
159159
with:
160160
git_committer_name: ${{ steps.release-bot-token.outputs.app-slug }}[bot]
161161
git_committer_email: ${{ steps.release-bot-user-id.outputs.user-id }}+${{ steps.release-bot-token.outputs.app-slug }}[bot]@users.noreply.github.com
@@ -167,14 +167,14 @@ jobs:
167167
- name: Publish package distributions to PyPI
168168
if: steps.release.outputs.released == 'true'
169169
# see https://github.com/pypa/gh-action-pypi-publish
170-
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
170+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
171171
with:
172172
attestations: true
173173

174174
- name: Publish package distributions to GitHub Releases
175175
if: steps.release.outputs.released == 'true'
176176
# see https://python-semantic-release.readthedocs.io/en/latest/automatic-releases/github-actions.html#python-semantic-release-publish-action
177-
uses: python-semantic-release/publish-action@310a9983a0ae878b29f3aac778d7c77c1db27378 # v10
177+
uses: python-semantic-release/publish-action@310a9983a0ae878b29f3aac778d7c77c1db27378 # v10.5.3
178178
with:
179179
github_token: ${{ steps.release-bot-token.outputs.token }}
180180
tag: ${{ steps.release.outputs.tag }}

.github/workflows/zizmor.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
# Analyzes all GitHub Actions workflows for security issues using zizmor.
22
# docs: https://docs.zizmor.sh/
3-
name: Workflow Security Analysis (zizmor)
3+
name: Zizmor
44

55
on:
6-
pull_request:
7-
paths:
8-
- ".github/workflows/**"
96
push:
10-
paths:
11-
- ".github/workflows/**"
7+
branches: ['master', 'main']
8+
pull_request:
9+
branches: ['**']
10+
workflow_dispatch:
1211
schedule:
13-
# Every Saturday at 00:00 UTC
14-
- cron: "0 0 * * 6"
12+
- cron: '0 0 * * 6'
13+
14+
permissions: {}
1515

1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
17+
group: '${{ github.workflow }}-${{ github.ref }}'
1818
cancel-in-progress: true
1919

20-
permissions:
21-
contents: read
22-
2320
jobs:
2421
zizmor:
25-
name: zizmor
22+
name: Zizmor
2623
runs-on: ubuntu-latest
2724
timeout-minutes: 10
25+
permissions:
26+
contents: read
2827
steps:
2928
- name: Checkout
3029
# see https://github.com/actions/checkout
31-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3231
with:
3332
persist-credentials: false
34-
- name: Run zizmor
33+
- name: Run zizmor 🌈
3534
# see https://github.com/zizmorcore/zizmor-action
36-
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
35+
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
3736
with:
3837
# advanced-security: false => emit findings as workflow-command annotations (::error file=…) rather than
3938
# uploading a SARIF report to GitHub's Security tab.

0 commit comments

Comments
 (0)