We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ffa99 commit aa692ffCopy full SHA for aa692ff
1 file changed
.github/workflows/sonarcloud.yml
@@ -38,17 +38,12 @@ jobs:
38
--query value -o tsv 2>/dev/null || true)"
39
40
TOKEN_SOURCE=""
41
- if [ -n "${KV_SONAR_TOKEN}" ]; then
42
- KV_VALID="$(curl -sS -u "${KV_SONAR_TOKEN}:" https://sonarcloud.io/api/authentication/validate | grep -Eo 'true|false' | head -n1 || true)"
43
- if [ "${KV_VALID}" = "true" ]; then
44
- SONAR_TOKEN="${KV_SONAR_TOKEN}"
45
- TOKEN_SOURCE="keyvault"
46
- fi
47
48
-
49
- if [ -z "${TOKEN_SOURCE}" ] && [ -n "${FALLBACK_SONAR_TOKEN:-}" ]; then
+ if [ -n "${FALLBACK_SONAR_TOKEN:-}" ]; then
50
SONAR_TOKEN="${FALLBACK_SONAR_TOKEN}"
51
TOKEN_SOURCE="github-secret-fallback"
+ elif [ -n "${KV_SONAR_TOKEN}" ]; then
+ SONAR_TOKEN="${KV_SONAR_TOKEN}"
+ TOKEN_SOURCE="keyvault"
52
fi
53
54
if [ -z "${TOKEN_SOURCE}" ]; then
0 commit comments