From bd17f4eb6e87667efb17c8f87f48def7520d8332 Mon Sep 17 00:00:00 2001 From: lotyp Date: Fri, 12 May 2023 17:36:47 +0300 Subject: [PATCH] feat: shellcheck workflow --- .github/workflows/shellcheck.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 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..219e4c3 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,37 @@ +--- + +on: # yamllint disable-line rule:truthy + workflow_call: + inputs: + os: + description: The operating system to run the workflow on + required: true + type: string + default: ubuntu-latest + severity: + description: Severity level for shell-check + required: false + type: string + default: warning + secrets: + token: + description: Github token used to run this workflow + required: true + type: string + +name: 🐞 Differential shell-check + +jobs: + shellcheck: + runs-on: ${{ inputs.os }} + steps: + - name: 📦 Check out the codebase + uses: actions/checkout@v3 + + - name: 🐞 Differential shell-check + uses: redhat-plumbers-in-action/differential-shellcheck@v4 + with: + severity: ${{ inputs.severity }} + token: ${{ secrets.token }} + +...