Skip to content

Commit

Permalink
Update sonar project key
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-opsverse authored Mar 18, 2024
1 parent e7afef3 commit fec171b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
id: fetch-security-rating
run: |
# Fetching data from SonarQube
response=$(curl --location --location-trusted --max-redirs 10 --silent --fail --show-error --user ${{ secrets.SONARQUBE_TOKEN }}: "${{ secrets.SONAR_HOST_URL }}/api/measures/component?component=OpsVerseIO_hello-world-api-dotnet_1020c653-2d20-42f8-9366-4c815193b787&metricKeys=security_rating")
response=$(curl --location --location-trusted --max-redirs 10 --silent --fail --show-error --user ${{ secrets.SONARQUBE_TOKEN }}: "${{ secrets.SONAR_HOST_URL }}/api/measures/component?component=OpsVerseIO_hello-world-api-dotnet_0b6ec67c-a096-486a-b4aa-16d972f93a22&metricKeys=security_rating")
# Extracting security ratings
security_score=$(echo $response | jq -r '.component.measures[] | select(.metric=="security_rating") | .value')
Expand Down

0 comments on commit fec171b

Please sign in to comment.