---
name: ShellCheck
on: workflow_call
env:
   REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
   GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
jobs:
  shellcheck:
    runs-on: ubuntu-24.04
    permissions:
      contents: read
      pull-requests: write
    steps:
       - uses: actions/checkout@v5
       - name: ShellCheck
         uses: reviewdog/action-shellcheck@v1
         with:
            exclude: './tools/*'
            fail_level: any
            reporter: github-pr-review
