Skip to content

Commit 754cadb

Browse files
author
Vladimir Kotal
committed
add Sonarcloud token
1 parent 91b7fd5 commit 754cadb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
OPENGROK_REPO_SLUG: ${{ github.repository }}
3030
OPENGROK_REF: ${{ github.ref }}
3131
OPENGROK_COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
32+
OPENGROK_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3233
run: ./dev/main
3334
macos:
3435
name: macOS with Java 11
@@ -56,6 +57,7 @@ jobs:
5657
OPENGROK_REPO_SLUG: ${{ github.repository }}
5758
OPENGROK_REF: ${{ github.ref }}
5859
OPENGROK_COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
60+
OPENGROK_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5961
run: ./dev/main
6062
windows:
6163
name: Windows with Java 11

dev/main

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [[ "x$OPENGROK_REPO_SLUG" == "xoracle/opengrok" && "x$OPENGROK_BRANCH" == "xm
2323
#
2424
if [ "${OPENGROK_PULL_REQUEST}" = "false" ]; then
2525
echo "Enabling Sonar"
26-
extra_args="$extra_args sonar:sonar"
26+
extra_args="$extra_args -Dsonar.login=$OPENGROK_SONAR_TOKEN sonar:sonar"
2727
fi
2828
fi
2929

0 commit comments

Comments
 (0)