From e775ed7f4ef9fa8450f24839fded775ad1b36d1f Mon Sep 17 00:00:00 2001 From: finn Date: Fri, 4 Oct 2024 12:06:03 -0700 Subject: [PATCH] found a new potential endpoint burried deep in https://github.com/jfrog/setup-jfrog-cli/blob/2b7ec797223f582bca7fbc5cf163195807ea276e/src/utils.ts#L147C86-L147C111 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41427d3..f1fde20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: -DnewVersion=${{ steps.resolve_version.outputs.resolved_version }} GITHUB_ID_TOKEN="$(curl -sLS -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=jfrog-github" | jq -r .value)" - export ARTIFACTORY_PASSWORD="$(curl -f "https://blockxyz.jfrog.io/access/api/v1/tokens" -d "{\"grant_type\": \"urn:ietf:params:oauth:grant-type:token-exchange\", \"subject_token_type\":\"urn:ietf:params:oauth:token-type:access_token\", \"subject_token\": \"$GITHUB_ID_TOKEN\", \"provider_name\": \"github-oidc\"}" | jq -r .access_token)" + export ARTIFACTORY_PASSWORD="$(curl -f "https://blockxyz.jfrog.io/access/api/v1/oidc/token" -d "{\"grant_type\": \"urn:ietf:params:oauth:grant-type:token-exchange\", \"subject_token_type\":\"urn:ietf:params:oauth:token-type:access_token\", \"subject_token\": \"${GITHUB_ID_TOKEN}\", \"provider_name\": \"github-oidc\"}" | jq -r .access_token)" # Maven deploy lifecycle will build, run tests, verify, sign, and deploy mvn deploy --batch-mode --settings .maven_settings.xml -P sign-artifacts