diff --git a/.github/workflows/differential-shellcheck.yml b/.github/workflows/differential-shellcheck.yml index 672d9f4ba46..6cf7112b38f 100644 --- a/.github/workflows/differential-shellcheck.yml +++ b/.github/workflows/differential-shellcheck.yml @@ -1,6 +1,7 @@ name: Differential ShellCheck on: push: + branches: [ main, rhel-*, fedora-* ] pull_request: branches: [ main, rhel-*, fedora-* ] @@ -9,8 +10,9 @@ permissions: jobs: lint: + if: github.event.repository == 'rhinstaller/anaconda' runs-on: ubuntu-latest - + permissions: security-events: write pull-requests: write @@ -23,7 +25,7 @@ jobs: - id: ShellCheck name: Differential ShellCheck - uses: redhat-plumbers-in-action/differential-shellcheck@v4 + uses: redhat-plumbers-in-action/differential-shellcheck@v5 with: severity: warning token: ${{ secrets.GITHUB_TOKEN }} @@ -31,7 +33,7 @@ jobs: *.j2 **/*.j2 - - if: ${{ always() }} + - if: ${{ runner.debug == '1' && ! cancelled()}} name: Upload artifact with ShellCheck defects in SARIF format uses: actions/upload-artifact@v4 with: