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:
2 files changed
+30
-14
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in new issue
Block a user