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 }} + +...