[aw] Harden Code Radiator safe-outputs for scheduled runs#25371
Open
[aw] Harden Code Radiator safe-outputs for scheduled runs#25371
Conversation
Agent-Logs-Url: https://github.com/dotnet/macios/sessions/2695bec5-1d13-44d6-ab76-1ccebace81cd Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Code Radiator workflow failure
[aw] Harden Code Radiator safe-outputs for scheduled runs
May 8, 2026
rolfbjarne
approved these changes
May 8, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Hardens the Code Radiator agentic workflow configuration so scheduled runs (non-PR context) can still safely create/update merge PRs across expected target branch families, while tightening “safe outputs” constraints to prevent unintended write targets.
Changes:
- Adds checkout configuration to fetch full history and additional refs needed for wildcard PR targeting.
- Updates safe-output policy to allow PR base overrides for
net*.0/xcode*and to enable “any PR” branch pushes gated by a title prefix. - Regenerates the compiled workflow artifact (
code-radiator.lock.yml) to reflect the frontmatter changes.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/code-radiator.md | Updates frontmatter for checkout fetch behavior and safe-outputs constraints for scheduled runs. |
| .github/workflows/code-radiator.lock.yml | Regenerated compiled workflow reflecting the updated checkout and safe-outputs policy. |
Comment on lines
+28
to
+29
| - "net*.0" | ||
| - "xcode*" |
| max: 10 | ||
| push-to-pull-request-branch: | ||
| max: 10 | ||
| target: "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Code Radiator failed on
mainscheduled execution because safe outputs assumed PR-trigger context and rejected dynamic base overrides. This updates workflow constraints so scheduled runs can safely update existing merge PRs and create new ones across target branches.Safe output policy updates
safe-outputs.create-pull-request.allowed-base-branches: ["net*.0", "xcode*"]safe-outputs.push-to-pull-request-branch.target: "*"safe-outputs.push-to-pull-request-branch.title-prefix: "🤖 Merge 'main' => '"Checkout behavior aligned to safe-output targeting
target: "*"PR-branch pushes:checkout.fetch: ["*"]checkout.fetch-depth: 0Compiled workflow artifact refresh
.github/workflows/code-radiator.lock.ymlfrom updated source workflow frontmatter.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/actions/checkout/git/ref/tags/v6.0.2/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6.0.2 --jq [.object.sha, .object.type] | @tsv .js(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6.0.2 --jq [.object.sha, .object.type] | @tsv(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6.0.2 --jq [.object.sha, .object.type] | @tsv 0 -j ACCEPT(http block)https://api.github.com/repos/actions/download-artifact/git/ref/tags/v8.0.1/usr/bin/gh gh api /repos/actions/download-artifact/git/ref/tags/v8.0.1 --jq [.object.sha, .object.type] | @tsv(http block)/usr/bin/gh gh api /repos/actions/download-artifact/git/ref/tags/v8.0.1 --jq [.object.sha, .object.type] | @tsv INVALID,NEW -j DROP(http block)https://api.github.com/repos/actions/setup-node/git/ref/tags/v6.4.0/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6.4.0 --jq [.object.sha, .object.type] | @tsv(http block)/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6.4.0 --jq [.object.sha, .object.type] | @tsv INVALID,NEW -j DROP(http block)https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v7.0.1/usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v7.0.1 --jq [.object.sha, .object.type] | @tsv(http block)https://api.github.com/repos/dotnet/macios/usr/bin/gh gh api /repos/dotnet/macios --jq .visibility(http block)If you need me to access, download, or install something from one of these locations, you can either: