Allow Changeset Generator to write .changeset/ under protected-file enforcement#31151
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
May 9, 2026 04:44
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the Changeset Generator workflow’s safe-output policy so it can write to the top-level .changeset/ dot-folder while still enforcing a strict allowlist and keeping protected-files behavior blocked.
Changes:
- Updated
push-to-pull-request-branchsafe-output configuration to exclude.changeset/from top-level dot-folder protection while keepingallowed-files: [.changeset/**]. - Regenerated the compiled workflow lock file so runtime config includes
protected_dot_folder_excludes: [".changeset/"]and an explicitprotected_files_policy: "blocked".
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/changeset.md | Adds protected-files object form with an exclusion for .changeset/ under the push-to-PR safe-output. |
| .github/workflows/changeset.lock.yml | Regenerated compiled workflow embedding protected_dot_folder_excludes: [".changeset/"] and protected_files_policy: "blocked" in safe-outputs config. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
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.
Bug Fix
What was the bug?
The Changeset Generator failed when pushing
.changeset/*.mdupdates:allowed-files: [.changeset/**]passed, but top-level dot-folder protection still treated.changeset/as protected and blockedpush_to_pull_request_branch.How did you fix it?
Safe-output policy adjustment
.changeset/**..changeset/so dot-folder protection does not block intended changeset writes.protected-filespolicy asblockedfor all other protected files.Compiled workflow update
changeset.lock.ymlso runtime config includesprotected_dot_folder_excludes: [".changeset/"]andprotected_files_policy: "blocked".