Skip to content

Commit 5bff5b5

Browse files
committed
Check for Sonar secret availability
1 parent d98d9db commit 5bff5b5

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Sonar Secret Diagnostic
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
check-secret:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check SONAR_TOKEN presence
12+
run: |
13+
if [ -z "$SONAR_TOKEN" ]; then
14+
echo "SONAR_TOKEN is EMPTY"
15+
exit 1
16+
else
17+
echo "SONAR_TOKEN is PRESENT"
18+
fi
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)