Skip to content

Commit f1f248e

Browse files
Merge branch 'Mayank-goel360:main' into main
2 parents f8a9c56 + 745fc5b commit f1f248e

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/dra.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: PR Validation for Polling file
2+
name: PR Validation for Polling file prod
33

44
on:
55
pull_request_target:
@@ -14,7 +14,7 @@ permissions:
1414

1515
env:
1616
CLIENT_ID: ${{ secrets.AZURE_CONTENT_VALIDATION_CLIENT_ID }}
17-
API_BASE: https://sentinel-content-validationapi-prod-bvgsc3hjhyeqangg.canadacentral-01.azurewebsites.net/
17+
API_BASE: https://sentinel-content-validationapi-prod-bvgsc3hjhyeqangg.canadacentral-01.azurewebsites.net/
1818

1919
jobs:
2020
pr-validate:
@@ -94,6 +94,13 @@ jobs:
9494
response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE/")
9595
echo "$response" | jq . || true
9696
97+
- name: 📡 Send GET request with Bearer token
98+
run: |
99+
echo "🚀 Sending GET to $API_URL"
100+
response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_URL")
101+
echo "🔍 Response JSON:"
102+
echo "$response" | jq .
103+
97104
- name: Send POST request with JSON payload
98105
if: ${{ env.JSON_PAYLOAD_PATH != 'empty' }}
99106
run: |

.github/workflows/dra1.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: PR Validation for Polling file
2+
name: dev
33

44
on:
55
pull_request_target:
@@ -94,6 +94,13 @@ jobs:
9494
response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE/")
9595
echo "$response" | jq . || true
9696
97+
- name: 📡 Send GET request with Bearer token
98+
run: |
99+
echo "🚀 Sending GET to $API_URL"
100+
response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_URL")
101+
echo "🔍 Response JSON:"
102+
echo "$response" | jq .
103+
97104
- name: Send POST request with JSON payload
98105
if: ${{ env.JSON_PAYLOAD_PATH != 'empty' }}
99106
run: |
@@ -102,9 +109,11 @@ jobs:
102109
response=$(curl -s -X POST "$API_BASE/" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" --data-binary "@$JSON_PAYLOAD_PATH")
103110
104111
result_status=$(echo "$response" | jq -r '.status // empty')
105-
echo message=$(echo "$response" | jq -r '.message // "No message provided"')
112+
message=$(echo "$response" | jq -r '.message // "No message provided"')
106113
107-
114+
echo $result_status
115+
echo "$result_status"
116+
108117
echo "✅ $message"
109118
if [ "$result_status" != "passed" ]; then
110119
echo -e " ❌ Validation failed: $message "

0 commit comments

Comments
 (0)