From 614ad5b5cd26e77cd1cb0758aee4c02d7922ad16 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Mon, 18 May 2026 01:05:40 +0700 Subject: [PATCH] ci: ignore specific shellcheck warnings in generated release workflow Suppress SC2086 and SC2129 linting errors for the generated release.yml to prevent build noise while maintaining checks for logic issues. --- .github/workflows/actions-security.yml | 9 +++++++-- .github/workflows/supply-chain.yml | 6 ++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions-security.yml b/.github/workflows/actions-security.yml index 91b1868..348a514 100644 --- a/.github/workflows/actions-security.yml +++ b/.github/workflows/actions-security.yml @@ -28,8 +28,13 @@ jobs: persist-credentials: false - name: Run actionlint - uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2 - + uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2. + with: + # release.yml is generated by dist. Keep linting it for real + # workflow issues, but ignore generated ShellCheck style/info noise. + flags: >- + -ignore '\.github/workflows/release\.yml:[0-9]+:[0-9]+: shellcheck reported issue .*SC2086' + -ignore '\.github/workflows/release\.yml:[0-9]+:[0-9]+: shellcheck reported issue .*SC2129' zizmor: name: zizmor runs-on: ubuntu-latest diff --git a/.github/workflows/supply-chain.yml b/.github/workflows/supply-chain.yml index 34316a0..192e695 100644 --- a/.github/workflows/supply-chain.yml +++ b/.github/workflows/supply-chain.yml @@ -62,3 +62,9 @@ jobs: - name: Run actionlint uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2 + with: + # release.yml is generated by dist. Keep linting it for real + # workflow issues, but ignore generated ShellCheck style/info noise. + flags: >- + -ignore '\.github/workflows/release\.yml:[0-9]+:[0-9]+: shellcheck reported issue .*SC2086' + -ignore '\.github/workflows/release\.yml:[0-9]+:[0-9]+: shellcheck reported issue .*SC2129'