Skip to content

Commit 61a6cc3

Browse files
committed
Move Secret to global environment
1 parent 5bff5b5 commit 61a6cc3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sonar-secret-diagnostics.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
workflow_dispatch:
66

7+
env:
8+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
9+
710
jobs:
811
check-secret:
912
runs-on: ubuntu-latest
@@ -16,5 +19,3 @@ jobs:
1619
else
1720
echo "SONAR_TOKEN is PRESENT"
1821
fi
19-
env:
20-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)