mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
fix: use sonar token as env var
This commit is contained in:
parent
1c85f8915c
commit
449bac5d65
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -21,6 +21,9 @@ env:
|
|||
# a step 'if env.GHCR_USERNAME' != ""', so we copy these to succinctly test whether
|
||||
# credentials have been provided before trying to run steps that need them.
|
||||
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
|
||||
|
||||
# Sonar
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
jobs:
|
||||
detect-noop:
|
||||
|
@ -176,7 +179,7 @@ jobs:
|
|||
make test
|
||||
|
||||
- name: SonarCloud Scans
|
||||
if: ${{secrets.SONAR_TOKEN}} != ''
|
||||
if: env.SONAR_TOKEN != ''
|
||||
uses: SonarSource/sonarcloud-github-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||
|
|
Loading…
Reference in a new issue