ci: split actionlint into separate steps for handwritten and generated workflows

Disable ShellCheck globally for the cargo-dist generated release workflow to replace brittle regex ignore patterns with a cleaner configuration.
This commit is contained in:
Nils Andreas Svee committed 2026-05-18 13:50:18 +07:00
1 parent 5c96024c4f
commit c739764476
2 files changed
+30 -14

No files matched your search

+15 -7
View File
@@ -27,14 +27,22 @@ jobs:
with:
persist-credentials: false
- name: Run actionlint
uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2.
- name: actionlint handwritten workflows
uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8
with:
# release.yml is generated by cargo-dist. Keep actionlint enabled for it,
# but ignore generated ShellCheck style/info noise from that file only.
flags: >-
-ignore \.github/workflows/release\.yml:[0-9]+:[0-9]+:.*SC2086
-ignore \.github/workflows/release\.yml:[0-9]+:[0-9]+:.*SC2129
files: >-
.github/workflows/actions-security.yml,
.github/workflows/ci.yml,
.github/workflows/osv-scanner.yml,
.github/workflows/rust-clippy.yml,
.github/workflows/semver.yml,
.github/workflows/supply-chain.yml
- name: actionlint generated release workflow
uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8
with:
files: .github/workflows/release.yml
shellcheck: false
zizmor:
name: zizmor
runs-on: ubuntu-latest
+15 -7
View File
@@ -60,11 +60,19 @@ jobs:
with:
persist-credentials: false
- name: Run actionlint
uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2
- name: actionlint handwritten workflows
uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8
with:
# release.yml is generated by cargo-dist. Keep actionlint enabled for it,
# but ignore generated ShellCheck style/info noise from that file only.
flags: >-
-ignore \.github/workflows/release\.yml:[0-9]+:[0-9]+:.*SC2086
-ignore \.github/workflows/release\.yml:[0-9]+:[0-9]+:.*SC2129
files: >-
.github/workflows/actions-security.yml,
.github/workflows/ci.yml,
.github/workflows/osv-scanner.yml,
.github/workflows/rust-clippy.yml,
.github/workflows/semver.yml,
.github/workflows/supply-chain.yml
- name: actionlint generated release workflow
uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8
with:
files: .github/workflows/release.yml
shellcheck: false