Skip to content

Commit

Permalink
ci:debug secret
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony TREUILLIER <[email protected]>
  • Loading branch information
antrema committed Jan 8, 2025
1 parent c3145f2 commit 3bcc861
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ jobs:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- name: Set up secret file
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST }}
SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }}
run: |
echo $SONAR_TOKEN >> secrets.txt
echo $SONAR_HOST_URL >> secrets.txt
echo $SONAR_PROJECT_KEY >> secrets.txt
cat secrets.txt
echo ${{secrets.SONAR_TOKEN}} | sed 's/./& /g'
echo ${{secrets.SONAR_HOST}} | sed 's/./& /g'
echo ${{secrets.SONAR_PROJECT_KEY}} | sed 's/./& /g'
- name: Run tmate
uses: mxschmitt/action-tmate@v2

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v3.0.0
env:
Expand Down

0 comments on commit 3bcc861

Please sign in to comment.