Skip to content

Add environment: gh-aw-agents to remaining workflows - #35974

Merged
PureWeen merged 1 commit into
mainfrom
pureween/fuzzy-goggles
Jun 17, 2026
Merged

Add environment: gh-aw-agents to remaining workflows#35974
PureWeen merged 1 commit into
mainfrom
pureween/fuzzy-goggles

Conversation

@PureWeen

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Summary

Follow-up to #35951 — extends environment: gh-aw-agents gating to the remaining 4 workflows that were not included in the initial PR:

Workflow Type Change
agentic-labeler.md gh-aw Added environment: gh-aw-agents
copilot-evaluate-tests.md gh-aw Added environment: gh-aw-agents
copilot-review-tests.md gh-aw Added environment: gh-aw-agents
review-trigger.yml Regular GHA Added environment: gh-aw-agents to trigger-review job

Why

After #35951 merged, repo-level secrets (COPILOT_GITHUB_TOKEN, AZDO_TRIGGER_TENANT_ID, AZDO_TRIGGER_CLIENT_ID) were deleted in favor of environment-scoped secrets on the gh-aw-agents environment. These 4 workflows need the environment: reference to access those secrets.

Details

  • All 3 gh-aw workflow locks recompiled with gh aw v0.79.8
  • environment: gh-aw-agents verified on agent + safe-outputs + threat-detection jobs in all lock files
  • review-trigger.yml is a regular GHA workflow — environment added at job level, no compile needed
  • Pre-existing compile warnings (agentic-labeler pull_request_target, copilot-evaluate-tests slash_command + bots:) are unchanged and intentional

Follow-up to #35951 — extend environment gating to the 3 remaining
gh-aw workflows (agentic-labeler, copilot-evaluate-tests,
copilot-review-tests) and the review-trigger.yml GHA workflow.

After #35951 merged, repo-level secrets were deleted in favor of
environment-scoped secrets on gh-aw-agents. These 4 workflows need
the environment reference to access COPILOT_GITHUB_TOKEN and
AZDO_TRIGGER_* secrets.

Recompiled all 3 gh-aw locks with gh-aw v0.79.8.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 35974

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 35974"

@github-actions

This comment has been minimized.

@PureWeen
PureWeen merged commit 524d623 into main Jun 17, 2026
24 of 27 checks passed
@PureWeen
PureWeen deleted the pureween/fuzzy-goggles branch June 17, 2026 20:38
@github-actions github-actions Bot added this to the .NET 10 SR9 milestone Jun 17, 2026
@github-actions github-actions Bot added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Jun 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Tests Failure Analysis

@PureWeen — test-failure review results are available based on commit 59408cd.
To request a fresh review after new comments, commits, or CI runs, comment /review tests.

Overall Likely unrelated Failures 1

Test Failure Review: Likely unrelated - click to expand

Overall verdict: Likely unrelated

The single activation failure in the Agentic Labeler workflow (run 27717066122) was transient — every subsequent re-run of the same workflow on this PR succeeded, and no test failures were extracted from any accessible build.

Failure Verdict Evidence
activation (Agentic Labeler, run 27717066122) Likely unrelated Transient: subsequent runs 27717444812, 27717451197, and 27717455972 all show activation succeeded. No test logs or AzDO build were associated.

Recommended action

No action needed. The transient activation failure resolved on re-run, the PR is merged, and there are no test failures to investigate.

Evidence details
  • PR changes: 8 files, all in .github/workflows/ and .github/aw/ — no source code, no test files, no platform code.
  • maui-pr check: NEUTRAL (expected for workflow-only PRs; build is not triggered).
  • activation job 81992608119: FAILURE in the first run only.
  • Follow-up activation jobs 81993915789, 81994016269, 81994008263: all SUCCESS.
  • No AzDO token was available; authenticated test-run APIs were skipped. Build metadata and public logs were still queried but no AzDO build IDs were discovered from the failing check.
  • Build Analysis check was IN_PROGRESS at gather time and is unrelated to test failures.

PureWeen added a commit that referenced this pull request Jun 18, 2026
The OIDC federated credential on the Testing-MI-gh2zdo managed
identity doesn't have a subject for the gh-aw-agents environment,
causing AADSTS700213 on every /review command. Revert to repo-level
AZDO_TRIGGER_* secrets until the federated credential is updated.

Fixes the /review trigger broken by #35974.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PureWeen added a commit that referenced this pull request Jun 18, 2026
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

## Summary

Removes `environment: gh-aw-agents` from the `trigger-review` job in
`review-trigger.yml`.

## Why

PR #35974 added `environment: gh-aw-agents` to `review-trigger.yml`,
which changed the GitHub OIDC token subject from
`repo:dotnet/maui:ref:refs/heads/main` to
`repo:dotnet/maui:environment:gh-aw-agents`. The managed identity
(`Testing-MI-gh2zdo`) behind `AZDO_TRIGGER_CLIENT_ID` has no federated
credential for that environment subject, so every `/review` command
fails with:

```
AADSTS700213: No matching federated identity record found for presented
assertion subject 'repo:dotnet/maui:environment:gh-aw-agents'
```

The `AZDO_TRIGGER_*` secrets have been re-added at the repo level. Once
the federated credential is updated (requires Azure access to the
managed identity), the environment gating can be re-added.

## What changed

- Removed `environment: gh-aw-agents` from the `trigger-review` job (1
line)
- All gh-aw workflows remain gated — only `review-trigger.yml` (regular
GHA) is affected

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant