Skip to content

Commit 7c11ec2

Browse files
committed
Fix zizmor's help[self-repository]: use GitHub's dedicated self-repository syntax
1 parent 37a3bf4 commit 7c11ec2

3 files changed

Lines changed: 16 additions & 13 deletions

File tree

‎.github/actionlint.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ paths:
1212
ignore:
1313
- 1st argument of function call is not assignable
1414
- SC2(015|038|086|091|097|098|129|155)
15+
# Pending release of actionlint > 1.7.12 for `$/` self-repository syntax:
16+
# https://github.com/rhysd/actionlint/issues/711
17+
- reusable workflow call "\$/[^"]+" at "uses" is not following the format

‎.github/workflows/build.yml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ jobs:
4141
# || 'falsy-branch'
4242
# }}
4343
#
44-
uses: ./.github/workflows/reusable-context.yml
44+
uses: $/.github/workflows/reusable-context.yml
4545

4646
check-docs:
4747
name: Docs
4848
needs: build-context
4949
if: fromJSON(needs.build-context.outputs.run-docs)
50-
uses: ./.github/workflows/reusable-docs.yml
50+
uses: $/.github/workflows/reusable-docs.yml
5151

5252
check-autoconf-regen:
5353
name: 'Check if Autoconf files are up to date'
@@ -147,7 +147,7 @@ jobs:
147147
if: >-
148148
needs.build-context.outputs.run-tests == 'true'
149149
|| needs.build-context.outputs.run-docs == 'true'
150-
uses: ./.github/workflows/reusable-check-c-api-docs.yml
150+
uses: $/.github/workflows/reusable-check-c-api-docs.yml
151151

152152
build-windows:
153153
name: >-
@@ -175,7 +175,7 @@ jobs:
175175
# and only supported on 3.15+.
176176
- { arch: x64, free-threading: false, interpreter: tail-call }
177177
- { arch: x64, free-threading: true, interpreter: tail-call }
178-
uses: ./.github/workflows/reusable-windows.yml
178+
uses: $/.github/workflows/reusable-windows.yml
179179
with:
180180
arch: ${{ matrix.arch }}
181181
free-threading: ${{ matrix.free-threading }}
@@ -201,7 +201,7 @@ jobs:
201201
exclude:
202202
- os: macos-26-intel
203203
free-threading: true
204-
uses: ./.github/workflows/reusable-macos.yml
204+
uses: $/.github/workflows/reusable-macos.yml
205205
with:
206206
free-threading: ${{ matrix.free-threading }}
207207
os: ${{ matrix.os }}
@@ -238,7 +238,7 @@ jobs:
238238
bolt: false
239239
free-threading: false
240240
test-opts: '-u cpu'
241-
uses: ./.github/workflows/reusable-ubuntu.yml
241+
uses: $/.github/workflows/reusable-ubuntu.yml
242242
with:
243243
bolt-optimizations: ${{ matrix.bolt }}
244244
free-threading: ${{ matrix.free-threading }}
@@ -249,7 +249,7 @@ jobs:
249249
name: 'Ubuntu (installed)'
250250
needs: build-context
251251
if: needs.build-context.outputs.run-ubuntu == 'true'
252-
uses: ./.github/workflows/reusable-install.yml
252+
uses: $/.github/workflows/reusable-install.yml
253253

254254
build-ubuntu-ssltests:
255255
name: 'Ubuntu SSL tests'
@@ -373,13 +373,13 @@ jobs:
373373
name: 'Emscripten'
374374
needs: build-context
375375
if: needs.build-context.outputs.run-emscripten == 'true'
376-
uses: ./.github/workflows/reusable-emscripten.yml
376+
uses: $/.github/workflows/reusable-emscripten.yml
377377

378378
build-wasi:
379379
name: 'WASI'
380380
needs: build-context
381381
if: needs.build-context.outputs.run-wasi == 'true'
382-
uses: ./.github/workflows/reusable-wasi.yml
382+
uses: $/.github/workflows/reusable-wasi.yml
383383

384384
test-hypothesis:
385385
name: "Hypothesis tests on Ubuntu"
@@ -489,7 +489,7 @@ jobs:
489489
name: 'Lazy imports enabled'
490490
needs: build-context
491491
if: fromJSON(needs.build-context.outputs.run-tests)
492-
uses: ./.github/workflows/reusable-test-lazy-imports-all.yml
492+
uses: $/.github/workflows/reusable-test-lazy-imports-all.yml
493493

494494
build-san:
495495
# ${{ '' } is a hack to nest jobs under the same sidebar category.
@@ -516,7 +516,7 @@ jobs:
516516
- check-name: Memory
517517
sanitizer: MSan
518518
free-threading: false
519-
uses: ./.github/workflows/reusable-san.yml
519+
uses: $/.github/workflows/reusable-san.yml
520520
with:
521521
sanitizer: ${{ matrix.sanitizer }}
522522
free-threading: ${{ matrix.free-threading }}
@@ -598,7 +598,7 @@ jobs:
598598
&& 'no-exclude'
599599
|| 'python3-libraries'
600600
}}
601-
uses: ./.github/workflows/reusable-cifuzz.yml
601+
uses: $/.github/workflows/reusable-cifuzz.yml
602602
with:
603603
oss-fuzz-project-name: ${{ matrix.oss-fuzz-project-name }}
604604
sanitizer: ${{ matrix.sanitizer }}

‎.github/workflows/reusable-docs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
name: 'Check for removed HTML IDs'
105105
needs: build-doc
106106
if: github.event_name == 'pull_request'
107-
uses: ./.github/workflows/reusable-check-html-ids.yml
107+
uses: $/.github/workflows/reusable-check-html-ids.yml
108108

109109
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
110110
doctest:

0 commit comments

Comments
 (0)