👷 ci(build): enforce sonar host url secret presence
- update HOST_URL to require SONAR_HOST_URL secret for enhanced security configuration - improve error handling by ensuring critical secrets are set
This commit is contained in:
parent
8626fa5a0f
commit
e11d40bdda
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }}
|
||||
run: |
|
||||
HOST_URL=${SONAR_HOST_URL:-https://sonata.cyber77.de}
|
||||
HOST_URL=${SONAR_HOST_URL:?SONAR_HOST_URL secret not set}
|
||||
PROJECT_KEY="${SONAR_PROJECT_KEY}"
|
||||
if [ -z "$PROJECT_KEY" ] && [ -f sonar-project.properties ]; then
|
||||
PROJECT_KEY=$(grep -E '^sonar.projectKey=' sonar-project.properties | cut -d= -f2 | tr -d '\r')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue