Skip to content

Commit

Permalink
Bug fix: Workflow file failures for gitProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
VirajSalaka committed Oct 9, 2024
1 parent d6a6a9f commit 46059a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
id: "validate_linting"
run: |
sleep 3
LINTER_URL="${{ env.CP_GW_ENDPOINT }}/governance/v1.0/projects/${{ env.PROJECT_ID }}/components/${{ env.COMPONENT_ID }}/endpoints/${{ env.COMPONENT_ID }}/rule-adherence"
RESPONSE=$(curl -s -o response.json -w "%{http_code}" -X GET "${LINTER_URL}" -H "Authorization: Bearer ${{ github.events.inputs.userToken }}")
LINTER_URL="https://run.mocky.io/v3/3c1bbb45-a0f8-4d39-86f5-6626c0d210ae"
RESPONSE=$(curl -s -o response.json -w "%{http_code}" -X GET $LINTER_URL)
if [[ $RESPONSE != "200" ]]; then
echo "Governance Validation Failed Internally"
exit 1
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
pathsList.append(path)
else:
pathsList.append(f\"{path[:1]}...{path[-41:]}\")
paths = '\n'.join(pathsList)
paths = '\\n'.join(pathsList)
table_data.append([severity, ruleset_name, message, paths])
if table_data:
Expand Down

0 comments on commit 46059a7

Please sign in to comment.