Skip to content

fix(release-notes): stop printing the origin remote when it is refused - #21

Merged
robrigo merged 1 commit into
mainfrom
chore/script-refusal-message
Aug 19, 2026
Merged

fix(release-notes): stop printing the origin remote when it is refused#21
robrigo merged 1 commit into
mainfrom
chore/script-refusal-message

Conversation

@robrigo

@robrigo robrigo commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Why

The refusal path for a non-GitHub origin echoed the whole remote URL. A remote that carries credentials in the URL puts them on the terminal, and into a log wherever the composer runs unattended. The message now names the problem without the value.

The four repositories carrying this script keep byte-identical copies, so the change lands in all of them together.

Validation

scripts/release-notes.test.sh passes 12/12, unchanged from main. No test asserts the refusal text, so nothing was silently dropped. The file is byte-identical to the copies in the sibling repositories.

The refusal path for a non-GitHub origin echoed the whole remote URL. A
remote carrying credentials in the URL puts them on the terminal, and in
a log wherever the composer runs unattended. The message now names the
problem without the value.

Copilot AI left a comment

Copy link
Copy Markdown

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 hardens the scripts/release-notes.sh helper by avoiding printing the origin remote URL when it’s not a GitHub URL, preventing accidental credential leakage to terminals and logs during the refusal path.

Changes:

  • Stop echoing the full origin remote URL in the “non-GitHub origin” failure message.
  • Keep existing GitHub-origin parsing behavior unchanged while making the refusal message value-free.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@robrigo
robrigo merged commit e2104d7 into main Aug 19, 2026
2 checks passed
@robrigo
robrigo deleted the chore/script-refusal-message branch August 19, 2026 01:36
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.

2 participants