# doc: https://github.com/redhat-plumbers-in-action/differential-shellcheck#readme
---

name: Differential ShellCheck
on:
  push:
    branches: [main, rhel-*]
  pull_request:
    branches: [main, rhel-*]

permissions:
  contents: read

jobs:
  shellcheck:
    runs-on: ubuntu-latest

    permissions:
      security-events: write

    steps:
      - name: Repository checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Differential ShellCheck
        uses: redhat-plumbers-in-action/differential-shellcheck@v5
        with:
          severity: warning
          token: ${{ secrets.GITHUB_TOKEN }}
