Skip to content

fix(changeset): restrict safe-outputs allowed-files to .changeset/*.md#41937

Merged
pelikhan merged 1 commit into
mainfrom
copilot/configure-change-set-workflow
Jun 27, 2026
Merged

fix(changeset): restrict safe-outputs allowed-files to .changeset/*.md#41937
pelikhan merged 1 commit into
mainfrom
copilot/configure-change-set-workflow

Conversation

Copilot AI commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

The Changeset Generator workflow's push-to-pull-request-branch safe-outputs config used .changeset/**, which permits any file type in that directory. This allows the agent to inadvertently commit non-changeset artifacts (log files, etc.) alongside the intended markdown files.

Change

  • Tightened allowed-files from .changeset/**.changeset/*.md, restricting the patch validator to only accept markdown changeset files
safe-outputs:
  push-to-pull-request-branch:
    allowed-files:
      - .changeset/*.md   # was: .changeset/**

Recompiled changeset.lock.yml to reflect the updated configuration.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review June 27, 2026 20:45
Copilot AI review requested due to automatic review settings June 27, 2026 20:45
@pelikhan pelikhan merged commit fcb214e into main Jun 27, 2026
@pelikhan pelikhan deleted the copilot/configure-change-set-workflow branch June 27, 2026 20:45

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

This PR tightens the Changeset Generator workflow’s safe-outputs configuration to prevent the agent from committing unintended non-changeset artifacts under .changeset/, limiting allowed patches to markdown changeset files only.

Changes:

  • Restrict push-to-pull-request-branch.allowed-files from .changeset/** to .changeset/*.md in the workflow frontmatter.
  • Regenerate changeset.lock.yml so the compiled safe-outputs config matches the updated restriction.
Show a summary per file
File Description
.github/workflows/changeset.md Narrows safe-outputs allowed-files to only permit .changeset/*.md changeset files.
.github/workflows/changeset.lock.yml Recompiled lockfile reflecting the updated safe-outputs allowed-files glob in generated config.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Low

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.

3 participants