Commit ecdf0fb3 authored by Jan Macku's avatar Jan Macku
Browse files

ci(lint): Add differential-shellcheck action

It performs differential ShellCheck scans and report results directly in pull request.

documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck



Signed-off-by: default avatarJan Macku <jamacku@redhat.com>
parent a753b245
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
# Doc: https://github.com/redhat-plumbers-in-action/differential-shellcheck#usage
---

name: Differential ShellCheck
on:
  pull_request:
    branches: [master]

permissions:
  contents: read

jobs:
  lint:
    runs-on: ubuntu-latest

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

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