Skip to content

[code-radiator] Allow pushing protected files in cross-branch merges - #25847

Merged
rolfbjarne merged 2 commits into
mainfrom
copilot/aw-code-radiator-fix
Jun 29, 2026
Merged

rolfbjarne merged 2 commits into
mainfrom
copilot/aw-code-radiator-fix

Conversation

Copilot AI commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

The Code Radiator workflow was hard-blocked when merging main into target branches because the patch included protected files (.github/workflows/, .github/agents/, .github/aw/, .github/skills/). The push-to-pull-request-branch safe output defaults to protected-files: blocked.

Changes

  • code-radiator.md: Add protected-files: allowed to push-to-pull-request-branch — this workflow is explicitly designed to propagate all changes from main, including CI/workflow files
  • code-radiator.lock.yml: Recompiled to reflect the frontmatter change (protected_files_policy: "allowed" for push_to_pull_request_branch)

…anch safe output

Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Code Radiator workflow failure due to protected files [code-radiator] Allow pushing protected files in cross-branch merges Jun 29, 2026
Copilot AI requested a review from rolfbjarne June 29, 2026 12:19
@rolfbjarne
rolfbjarne marked this pull request as ready for review June 29, 2026 12:33
Copilot AI review requested due to automatic review settings June 29, 2026 12:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Code Radiator GitHub workflow configuration so cross-branch merges from main can propagate changes that touch “protected” paths (notably .github/*) by relaxing the safe-outputs restriction for the push-to-pull-request-branch action.

Changes:

  • Allow protected-file updates when using push-to-pull-request-branch in code-radiator.md.
  • Regenerate code-radiator.lock.yml so the compiled safe-outputs config reflects protected_files_policy: "allowed" for push_to_pull_request_branch.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/code-radiator.md Changes safe-outputs policy to allow pushing protected files to the PR branch during main→target merges.
.github/workflows/code-radiator.lock.yml Regenerated lockfile embedding the updated safe-outputs config (protected files policy now “allowed” for push-to-PR-branch).

Comment on lines 50 to +55
push-to-pull-request-branch:
max: 10
signed-commits: false
target: "*"
required-title-prefix: "🤖 Merge 'main' => '"
protected-files: allowed
@rolfbjarne
rolfbjarne merged commit d07168d into main Jun 29, 2026
12 checks passed
@rolfbjarne
rolfbjarne deleted the copilot/aw-code-radiator-fix branch June 29, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants