Skip to content

Commit

Permalink
ci: add differential ShellCheck
Browse files Browse the repository at this point in the history
This should only report errors on lines that are changed in a PR, and not block merges for pre-existing bugs.

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok authored and lindig committed Feb 28, 2024
1 parent df31602 commit b5a76a3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ concurrency: # On new push, cancel old workflows from the same PR, branch or ta
cancel-in-progress: true

jobs:
# https://www.shellcheck.net/wiki/GitHub-Actions
# https://github.com/redhat-plumbers-in-action/differential-shellcheck?tab=readme-ov-file#usage
shell-test:
name: Differential ShellCheck
runs-on: ubuntu-latest

permissions:
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

# If needed severity levels can be controlled here
# severity: warning
- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}

python-test:
name: Python tests
runs-on: ubuntu-22.04
Expand Down

0 comments on commit b5a76a3

Please sign in to comment.