From 7a2868b630db9c655d23b227caf83a763eb8ae6e Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Sun, 12 Oct 2025 16:25:03 +0300 Subject: [PATCH] Add CI for shellcheck --- .github/workflows/shellcheck.yml | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/shellcheck.yml diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..5138d01 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,48 @@ +name: Differential ShellCheck + +on: + push: + branches: + - main + - 'rc/**' + paths: + - '**.sh' + - 'podkop/files/usr/bin/**' + - 'podkop/files/usr/lib/**' + - '.github/workflows/shellcheck.yml' + pull_request: + branches: + - main + - 'rc/**' + paths: + - '**.sh' + - 'podkop/files/usr/bin/**' + - 'podkop/files/usr/lib/**' + - '.github/workflows/shellcheck.yml' + +permissions: + contents: read + +jobs: + shellcheck: + name: Differential ShellCheck + runs-on: ubuntu-latest + + permissions: + contents: read + security-events: write + + steps: + - name: Checkout code + uses: actions/checkout@v5.0.0 + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@v5.5.5 + with: + severity: error + scan-directory: | + podkop/files/usr/bin/** + podkop/files/usr/lib/** + token: ${{ secrets.GITHUB_TOKEN }}