Skip to content

Commit 9bc91d6

Browse files
committed
ci: use dd-octo-sts in package job [backport 3.10] (#14006)
Backport e0a772c from #13948 to 3.10. LANGPLAT-661 - [x] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) - [x] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting) Co-authored-by: Brett Langdon <brett.langdon@datadoghq.com>
1 parent 1f8c272 commit 9bc91d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.gitlab/package.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
download_ddtrace_artifacts:
2-
image: registry.ddbuild.io/github-cli:v27480869-eafb11d-2.43.0
2+
image: registry.ddbuild.io/images/dd-octo-sts-ci-base:2025.06-1
33
tags: [ "arch:amd64" ]
44
stage: package
5+
id_tokens:
6+
DDOCTOSTS_ID_TOKEN:
7+
aud: dd-octo-sts
58
script: |
69
if [ -z ${GH_TOKEN} ]
710
then
8-
aws ssm get-parameter --region us-east-1 --name ci.$CI_PROJECT_NAME.gh_token --with-decryption --query "Parameter.Value" --out text > token
11+
# Use dd-octo-sts to get GitHub token
12+
dd-octo-sts token --scope DataDog/dd-trace-py --policy gitlab.github-access.read > token
913
gh auth login --with-token < token
1014
rm token
1115
fi

0 commit comments

Comments
 (0)