Skip to content

Commit

Permalink
Change sonar project key in the api path
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-opsverse authored Mar 18, 2024
1 parent 59df858 commit e7afef3
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
@@ -35,7 +35,7 @@ jobs:
id: fetch-reliability-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=reliability_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=reliability_rating")
# Extracting reliability ratings
reliability_score=$(echo $response | jq -r '.component.measures[] | select(.metric=="reliability_rating") | .value')

0 comments on commit e7afef3

Please sign in to comment.