Update SonarQube job conditions not to run for dependabot

Dependabot won't have the privileges to access the Sonar access token, so these jobs will always fail for their PRs
This commit is contained in:
Daniel Markstedt
2025-11-06 22:16:27 -08:00
parent e6dd4e4d04
commit 793b12cb46
+4 -1
View File
@@ -51,7 +51,10 @@ jobs:
sonarcloud:
runs-on: ubuntu-24.04
if: github.repository == 'PiSCSI/piscsi'
if: >
(github.event_name == 'push' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot') || (github.event_name
== 'pull_request' && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && github.actor
!= 'dependabot')
env:
BUILD_WRAPPER_OUT_DIR: "$HOME/.build_wrapper_out"
steps: