Merge pull request #5715 from jkonecny12/master-fix-ks-tests-document… #4280
This file contains 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: Differential ShellCheck | |
on: | |
push: | |
pull_request: | |
branches: [ master, rhel-*, fedora-* ] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
pull-requests: write | |
steps: | |
- name: Repository checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- id: ShellCheck | |
name: Differential ShellCheck | |
uses: redhat-plumbers-in-action/differential-shellcheck@v5 | |
with: | |
severity: warning | |
token: ${{ secrets.GITHUB_TOKEN }} | |
exclude-path: | | |
*.j2 | |
**/*.j2 | |
- if: ${{ always() }} | |
name: Upload artifact with ShellCheck defects in SARIF format | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Differential ShellCheck SARIF | |
path: ${{ steps.ShellCheck.outputs.sarif }} |