Skip to content

Rely on dd-octo-sts for GITHUB token instead - #2848

Open
KevinFairise2 wants to merge 1 commit into
mainfrom
kfairise/use-dd-octo-sts-got-github
Open

Rely on dd-octo-sts for GITHUB token instead#2848
KevinFairise2 wants to merge 1 commit into
mainfrom
kfairise/use-dd-octo-sts-got-github

Conversation

@KevinFairise2

@KevinFairise2 KevinFairise2 commented Aug 10, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Update CI configuration to rely on dd-octo-sts to get a Github token

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • All commits are signed and show as "Verified" on GitHub (see: signing commits)
  • Chart Version semver bump label has been added (use <chartName>/minor-version, <chartName>/patch-version, or <chartName>/no-version-bump)
  • For datadog or datadog-operator chart or value changes, update the test baselines (run: make update-test-baselines)
  • For datadog chart changes, received ✅ from a member of your team

GitHub CI takes care of the below, but are still required:

  • Documentation has been updated with helm-docs (run: .github/helm-docs.sh)
  • CHANGELOG.md has been updated
  • Variables are documented in the README.md

@KevinFairise2
KevinFairise2 marked this pull request as ready for review August 13, 2026 07:25
@KevinFairise2
KevinFairise2 requested review from a team as code owners August 13, 2026 07:25
@KevinFairise2
KevinFairise2 requested review from tedkahwaji and removed request for a team August 13, 2026 07:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2013162319

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitlab-ci.yml

# Set GITHUB_TOKEN to avoid getting rate-limited when pulumi sdk downloads the kubernetes provider
- export GITHUB_TOKEN=$(aws ssm get-parameter --region us-east-1 --name ci.helm-charts.github_token --with-decryption --query "Parameter.Value" --out text)
- export GITHUB_TOKEN=$(dd-octo-sts token --scope DataDog/datadog-agent --policy self.gitlab.read))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Request the policy from the repository that defines it

When the E2E job requests a token, --scope identifies the repository whose .github/chainguard policy is evaluated, but self.gitlab.read is introduced in DataDog/helm-charts while this command requests it from DataDog/datadog-agent. Every existing workflow pairs these local policies with scope: DataDog/helm-charts (for example .github/workflows/release.yaml:29-30), so this request cannot use the new policy and leaves GITHUB_TOKEN empty; because export VAR=$(...) masks the substitution's failure status, the job continues unauthenticated and can still hit the GitHub rate limit this change is intended to prevent.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant