mirror of
https://github.com/akuker/RASCSI.git
synced 2026-04-24 07:16:46 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user