refactor(shell): scope GITHUB_TOKEN to mise subcommands #70
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Shell Lint (shellcheck) | |
| on: | |
| push: | |
| branches: [master, main] | |
| paths: | |
| - "**/*.sh" | |
| - ".shellcheckrc" | |
| - ".github/workflows/ci-shellcheck.yml" | |
| pull_request: | |
| branches: [master, main] | |
| paths: | |
| - "**/*.sh" | |
| - ".shellcheckrc" | |
| - ".github/workflows/ci-shellcheck.yml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| shellcheck: | |
| name: Shellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install shellcheck | |
| run: sudo apt-get update && sudo apt-get install -y shellcheck | |
| - name: Run shellcheck | |
| run: ./scripts/lint-shell.sh |