ci(github): Derive the repository from the workflow context #60330
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 191 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #60330"
general
weight: 0.35
pgimalac
What does this PR do?
Replaces the hardcoded
DataDog/datadog-agentin GitHub Actions with the workflow context. Thedd-octo-stsscopes use${{ github.repository }}, and the org membership check incheck-issue-statususescontext.repo.owner. The fork guards ofdeps-tidyandstalealso accept theddoghq/datadog-agentmirror.Functional changes
| Before | After |
| --- | --- |
| Workflows in the
ddoghq/datadog-agentmirror requested octo-sts tokens forDataDog/datadog-agent| They request tokens for the repo they run in ||
check-issue-statusin the mirror checked commenters against thedatadogorg | It checks the org that owns the repo ||
deps-tidyandstaleonly ran inDataDog/datadog-agent| They also run inddoghq/datadog-agent; forks still skip them |Unchanged: every value in
DataDog/datadog-agent, and the octo-sts policy names.Motivation
Same as #60328 for GitLab CI: the
ddoghq/datadog-agentmirror carries a patch rewriting these values, and every upstream change near them conflicts with its hourly rebase.Additional Notes
On the private mirror, the newly enabled
deps-tidyjobs also needcontents: readto check out the repo. #60266 adds it, so merge that one too.The pre-commit
actionlinthook fails onmainbecausecws-btfhub-sync.ymluses theubuntu-26.04runner label, which the pinned actionlint doesn't know yet. That failure has nothing to do with this change.🤖 Generated with Claude Code