Skip to content

Commit f4b3796

Browse files
Allow dependabot to run sonar - as it's a gate for PR builds
1 parent 394f207 commit f4b3796

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ jobs:
140140
thresholdAll: 0.65
141141

142142
- name: setup java
143-
if: github.actor != 'dependabot[bot]' && (success() || failure())
143+
if: success() || failure()
144144
uses: actions/setup-java@v3
145145
with:
146146
distribution: "corretto"
147147
java-version: "17"
148148

149149
- name: provision sonar-scanner
150-
if: github.actor != 'dependabot[bot]' && (success() || failure())
150+
if: success() || failure()
151151
run: |
152152
export SONAR_VERSION="4.7.0.2747"
153153
wget -q "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_VERSION}.zip" -O sonar-scanner.zip
@@ -156,7 +156,7 @@ jobs:
156156
scripts/sonar_tests.py
157157
158158
- name: run sonar scan
159-
if: github.actor != 'dependabot[bot]' && (success() || failure())
159+
if: success() || failure()
160160
run: |
161161
PATH="$PWD/sonar-scanner/bin:$PATH"
162162
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
@@ -170,7 +170,7 @@ jobs:
170170
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
171171

172172
- name: archive reports
173-
if: github.actor != 'dependabot[bot]' && (success() || failure())
173+
if: success() || failure()
174174
uses: actions/upload-artifact@v3
175175
with:
176176
name: reports

0 commit comments

Comments
 (0)