Skip to content

fix: let authors minimize the secret warning to a shield icon - #498

Merged
nunomaduro merged 1 commit into
dev-null-sh:productionfrom
fernandofreamunde:fix/secret-warning-minimize
Oct 19, 2026
Merged

nunomaduro merged 1 commit into
dev-null-sh:productionfrom
fernandofreamunde:fix/secret-warning-minimize

Conversation

@fernandofreamunde

@fernandofreamunde fernandofreamunde commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds a minimize control on the secrets-detected banner so false positives can get out of the way while editing a commit.
  • Collapsed state is just the shield icon under the editor; click it to expand again. Detection, remove, and publish-confirm behavior are unchanged.

It makes possible to minimize the alert, it is possible to re open it.
Example full alert:
image

Example minimized:
image

Test plan

  • Paste a fake secret (e.g. ghp_…) into the commit composer and confirm the warning appears
  • Click minimize and confirm only the shield icon remains
  • Click the shield and confirm the full warning expands again
  • Minimize sticks while editing; removing secrets clears the warning
  • Publish-anyway confirm dialog still works when submitting with secrets present

Made with Cursor

False positives keep the full banner in the way while editing; collapse it so the draft stays usable without clearing the detection.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fernandofreamunde

Copy link
Copy Markdown
Contributor Author

I did not want to touch the detection code on purpose, but I think it could be better too.

because it redacts the wrong thing here:
image

@fernandofreamunde

Copy link
Copy Markdown
Contributor Author

#600 related to the comment above

@nunomaduro
nunomaduro merged commit d60a32c into dev-null-sh:production Oct 19, 2026
6 checks passed
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