We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6942745 commit 7cfb79eCopy full SHA for 7cfb79e
.github/actions/setup-jfrog/action.yml
@@ -40,6 +40,15 @@ runs:
40
exit 1
41
fi
42
43
+ # Verify the token works.
44
+ HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" \
45
+ -H "Authorization: Bearer ${ACCESS_TOKEN}" \
46
+ "https://databricks.jfrog.io/artifactory/api/system/ping")
47
+ if [ "$HTTP_STATUS" != "200" ]; then
48
+ echo "::error::JFrog auth check failed (HTTP ${HTTP_STATUS})."
49
+ exit 1
50
+ fi
51
+
52
echo "JFROG_ACCESS_TOKEN=${ACCESS_TOKEN}" >> "$GITHUB_ENV"
53
54
- name: Configure Go and Python to use JFrog proxy
0 commit comments