Skip to content

Commit 2015f6f

Browse files
committed
Make one call to app key enabled policy
1 parent 7350e20 commit 2015f6f

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.gitlab/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,11 @@ notify_datadog_release:
5454
before_script:
5555
- apt-get update && apt-get install --no-install-recommends -y curl jq
5656
- >-
57-
DD_STS_API_KEY=$(curl -sS
58-
-H "Authorization: Bearer ${DD_STS_OIDC_TOKEN}"
59-
"https://dd-sts.us1.ddbuild.io/sts/datadog/exchange?policy=dd-trace-py-gitlab")
60-
- >-
61-
DD_STS_APP_KEY=$(curl -sS
57+
DD_STS_RESPONSE=$(curl -sS
6258
-H "Authorization: Bearer ${DD_STS_OIDC_TOKEN}"
6359
"https://dd-sts.us1.ddbuild.io/sts/datadog/exchange?policy=dd-trace-py-gitlab-app-key")
64-
- export DD_API_KEY=$(echo "$DD_STS_API_KEY" | jq -re '.api_key')
65-
- export DD_APP_KEY=$(echo "$DD_STS_APP_KEY" | jq -re '.application_key')
60+
- export DD_API_KEY=$(echo "$DD_STS_RESPONSE" | jq -re '.api_key')
61+
- export DD_APP_KEY=$(echo "$DD_STS_RESPONSE" | jq -re '.application_key')
6662
script:
6763
- |
6864
echo "Tag: ${CI_COMMIT_TAG} -> Commit SHA: ${CI_COMMIT_SHA}"

0 commit comments

Comments
 (0)