From 5601ea442aea7a924ba92469215e8151a595cbca Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 13 Dec 2025 13:44:04 +0100 Subject: [PATCH] **Refactor CI: make Ruff and ShellCheck reusable via workflow_call** * Convert Ruff and ShellCheck workflows to `workflow_call` * Remove direct `push` / `pull_request` triggers * Run sniffers only through centralized CI and release pipelines * Prevent duplicate and uncontrolled sniffer executions https://chatgpt.com/share/693d5f9a-5e70-800f-95da-837be2aedb4f --- .github/workflows/codesniffer-ruff.yml | 3 +-- .github/workflows/codesniffer-shellcheck.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codesniffer-ruff.yml b/.github/workflows/codesniffer-ruff.yml index 63d1284..d7b1297 100644 --- a/.github/workflows/codesniffer-ruff.yml +++ b/.github/workflows/codesniffer-ruff.yml @@ -1,8 +1,7 @@ name: Ruff (Python code sniffer) on: - push: - pull_request: + workflow_call: jobs: codesniffer-ruff: diff --git a/.github/workflows/codesniffer-shellcheck.yml b/.github/workflows/codesniffer-shellcheck.yml index 113ff41..7e4e01b 100644 --- a/.github/workflows/codesniffer-shellcheck.yml +++ b/.github/workflows/codesniffer-shellcheck.yml @@ -1,8 +1,7 @@ name: ShellCheck on: - push: - pull_request: + workflow_call: jobs: codesniffer-shellcheck: