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