Skip to content

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

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#36
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 updates the scripts/release-notes.sh helper (used to compose GitHub release bodies) to avoid echoing the configured origin URL when rejecting non-GitHub remotes, preventing accidental credential leakage in terminal output and logs.

Changes:

  • Remove the origin remote URL from the “non-GitHub URL” refusal error message to prevent leaking embedded credentials.

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

@robrigo
robrigo merged commit 776dea1 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