Skip to content

refactor(shell): scope GITHUB_TOKEN to mise subcommands #70

refactor(shell): scope GITHUB_TOKEN to mise subcommands

refactor(shell): scope GITHUB_TOKEN to mise subcommands #70

Workflow file for this run

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