Skip to content

Commit 87b2f0c

Browse files
authored
Update CKAN API test to include User-Agent
1 parent 1664922 commit 87b2f0c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/debug.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,18 @@ jobs:
2727
pip install -r requirements.txt
2828
2929
30-
- name: Test CKAN API directly
30+
- name: Test CKAN API with User-Agent
3131
run: |
32-
echo "=== TESTING CKAN API DIRECTLY ==="
32+
echo "=== TESTING CKAN API WITH USER-AGENT ==="
3333
34-
# Replace with your actual CKAN URL
35-
CKAN_URL="https://ecosystem.ckan.org/api/3/action/status_show"
34+
CKAN_URL="https://your-ckan-instance.com/api/3/action/status_show"
3635
3736
curl -X GET "$CKAN_URL" \
3837
-H "Authorization: $CKAN_API_KEY" \
3938
-H "Content-Type: application/json" \
39+
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" \
4040
-w "\nHTTP Status: %{http_code}\n"
41+
4142
- name: Verify environment variables
4243
run: |
4344
echo "=== ENVIRONMENT VERIFICATION ==="

0 commit comments

Comments
 (0)