Skip to content

Commit 3fad657

Browse files
committed
CQ-982 : Updated the GitHub action for supporting new remote analysis flow
1 parent 39728aa commit 3fad657

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ runs:
115115
echo "Fetching quality gate status..."
116116
117117
response=$(curl --silent --http1.1 -X GET \
118-
"${{ inputs.emboldUrl }}/api/v1/repositories/${{ inputs.emboldRepoUid }}/qualitygateprofiles/status" \
118+
"${{ inputs.emboldUrl }}/api/v1/repositories/${{ inputs.emboldRepoUid }}/qualitygateprofiles" \
119119
-H "Authorization: Bearer $EMBOLD_TOKEN")
120120
121-
status=$(echo "$response" | grep -o '"status":"[^"]*"' | cut -d'"' -f4)
121+
status=$(echo "$response" | grep -o '"status":"[^"]*"' | head -1 | cut -d'"' -f4)
122122
123123
echo "Quality Gate Status: $status"
124124
echo "status=$status" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)