diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 27a32b5..3d30950 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -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')