Skip to content

chore(deps): update actions/checkout action to v7 #257

chore(deps): update actions/checkout action to v7

chore(deps): update actions/checkout action to v7 #257

name: Differential ShellCheck
on:
push:
paths:
- '**.sh'
- 'collection-scripts/**'
- '.github/workflows/scripts-checks.yaml'
- 'tests/e2e/**'
- '!vendor/**'
branches: [ main ]
pull_request:
paths:
- '**.sh'
- 'collection-scripts/**'
- '.github/workflows/scripts-checks.yaml'
- 'tests/e2e/**'
- '!vendor/**'
branches: [ 'main' ]
permissions:
contents: read
jobs:
shellcheck-lint:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Repository checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
# Differential ShellCheck requires full git history
fetch-depth: 0
persist-credentials: false # Critical: Do not store GITHUB_TOKEN in .git/config
- id: ShellCheck
name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@d965e66ec0b3b2f821f75c8eff9b12442d9a7d1e # v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude-path: |
vendor/**
- if: always()
name: Upload artifact with ShellCheck defects in SARIF format
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}