Skip to content

Commit 72b89e6

Browse files
committed
chore: workflow to check sonar token
This patch is for a throw away workflow to check the sonar token The PR will be closed after the check is done Signed-off-by: Vanessa Valderrama <[email protected]>
1 parent d6f5baf commit 72b89e6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Sonar Token Check
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Show token owner
10+
env:
11+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
12+
run: |
13+
sudo apt-get update -y && sudo apt-get install -y jq
14+
curl -fsS -u "${SONAR_TOKEN}:" https://sonarcloud.io/api/users/current \
15+
| jq -r '.login,.name,.organizations'

0 commit comments

Comments
 (0)