Skip to content

Commit 8920e23

Browse files
authored
add sonar token check, to help debug sonar dependabot issue (#188)
Adds sonar token check if its not unset or empty to verify dependabot got access to the secret.
1 parent e39a622 commit 8920e23

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pull-request-main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ jobs:
4848
runs-on: ubuntu-24.04
4949
needs: [ ci-test, ci-lint-misc, ci-lint ]
5050
steps:
51+
- name: Check Sonar Token
52+
env:
53+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
54+
run: |
55+
if [[ -z "${SONAR_TOKEN}" ]]
56+
then
57+
echo 'Sonar Token not set.'
58+
else
59+
echo 'Sonar Token set.'
60+
fi
61+
5162
- name: Scan with Sonarqube
5263
uses: smartcontractkit/.github/actions/ci-sonarqube-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # ci-sonarqube-go@0.3.1
5364
with:

0 commit comments

Comments
 (0)