stable shellcheck in CI/CD #6
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: ShellCheck SARIF | |
on: [push, pull_request] | |
permissions: {} # Setting default permissions to none for enhanced security | |
jobs: | |
shellcheck: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
pull-requests: read # to get PR metadata | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
name: ShellCheck Analysis | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
env: | |
OS: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Shellcheck Scan | |
uses: reactive-firewall/shellcheck-scan@macos-support-feature | |
with: # optional arguments | |
match: 'tests/* **/*.bash' | |
publish-artifacts: true | |
if: ${{ success() }} |