Skip to content

docs: restore SECURITY.md on v2/main, so the next tree swap can't drop it - #1867

Merged
cliffhall merged 1 commit into
v2/mainfrom
v2/docs/restore-security-md-v2
Aug 1, 2026
Merged

docs: restore SECURITY.md on v2/main, so the next tree swap can't drop it#1867
cliffhall merged 1 commit into
v2/mainfrom
v2/docs/restore-security-md-v2

Conversation

@cliffhall

Copy link
Copy Markdown
Member

Closes #1864.

Recreated from #1865, which GitHub auto-closed when its head branch was renamed docs/restore-security-md-v2v2/docs/restore-security-md-v2 to satisfy the version-prefix branch convention. Same commit, same content; #1865 could not be reopened because its original head ref no longer exists.

Follow-up to #1843, and the same reasoning that moved #1851 onto v2/main.

The gap

SECURITY.md was restored to main in #1843, but it was never added to v2/main.

$ git ls-tree --name-only origin/v2/main SECURITY.md
(empty)

v2/main is the develop branch, merged into main at milestone releases. Every milestone merge therefore has to re-resolve this file's absence on the develop side, and any future tree-level operation risks removing the security policy from the default branch a second time. Adding it here makes the two branches agree.

Correction to #1865's description. It claimed main and v2/main share no common git ancestor. That is wrong — it came from running git merge-base in a shallow clone, which truncates history so the base isn't reachable. The branches do share a base, 4d30d1cd, established by the go-live merge (#1830); after git fetch --unshallow it resolves normally. The file gap is real regardless.

The change

Copied byte-for-byte from main — sha256 bbc8aaa5a33d481f902c1b7ac260a4c9c0d41dac5bb2916607222dd205dda924, 2633 bytes, verified after the copy. No content changes: #1843 already wrote this file for the post-swap world, so it describes the v2 single-package model and the v1-latest dist-tag correctly as-is.

Testing

No source files are touched, so no validate / coverage gate measures this change. npx prettier --check SECURITY.md passes.

Note

.github/workflows/claude.yml (#1851) and this file are the two known instances. Anything else restored directly to main after the swap is suspect for the same reason — a sweep is probably worth doing separately.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YAt8rqxysNbhYWLhoRm3fU

…p it

Closes #1864.

SECURITY.md was restored to main in #1843 but never added to v2/main.
Because v2/main is the develop branch merged into main at milestones, and
the two share no common git ancestor, the next milestone merge would
silently remove the security policy from the default branch a second time.

Copied byte-for-byte from main (sha256
bbc8aaa5a33d481f902c1b7ac260a4c9c0d41dac5bb2916607222dd205dda924,
2633 bytes). No content changes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAt8rqxysNbhYWLhoRm3fU

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

Restores the repository’s SECURITY.md file on v2/main to ensure the security policy remains present and consistent across branch milestone merges, avoiding regressions from future tree-level operations.

Changes:

  • Adds SECURITY.md to v2/main (content copied as-is from main) so the security policy is not inadvertently dropped during future merges.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Issues and PRs for v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SECURITY.md is missing from v2/main — the next milestone merge will drop it from main again

2 participants