Delete the stale remote branches feat/initial-site and security-audit #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Two dead branches are still on the remote.
feat/initial-site— safe to deleteFully merged into
main.git rev-list --left-right --count main...origin/feat/initial-sitereports zero commits unique to the branch; itwas merged by #2 back in February and has had no activity since. It is also
still listed as a push trigger in
.gitea/workflows/deploy.yml, which #7removes.
security-audit— needs your callSeven commits not on
main, from an old security exercise:The only file it touches is
.gitea/workflows/security-recon.yml. At thebranch tip that file is harmless — the payloads were stripped by
6c930bfandwhat remains is a placeholder step echoing "Security audit complete. See issue
#3." (Issue #3 no longer exists in this tracker.) The earlier commits in the
branch do still contain the recon and docker-socket-escape payloads in history.
The workflow triggers only on
pushtosecurity-audit, so it is dormant aslong as nobody pushes to that branch. It is not a live risk, but it is a live
trigger sitting on a branch nobody is watching, and the intermediate commits
are exactly the kind of thing that should not linger in a public repo without a
reason.
I am not deleting this one unilaterally — it is unmerged history from what
looks like a deliberate exercise, and destroying it is not reversible from the
tracker side.
Options for
security-auditOption A — delete it (recommended). The exercise is over, the findings are
not recorded anywhere in this repo, and the branch's only artifact is a
placeholder. If the results matter, they belong in an issue or a doc, not in a
dangling branch.
Option B — keep it, but neuter the trigger. Push one commit to the branch
removing
.gitea/workflows/security-recon.ymlentirely, so the history ispreserved but no workflow can ever fire from it.
Option C — keep it as-is. Only if you have a specific reason to want that
history reachable and are comfortable with the dormant trigger.
My recommendation: Option A.
Definition of done
origin/feat/initial-siteis deleted. (No decision needed; it is fullymerged. Do this only after #7 has landed, so
deploy.ymlno longerreferences it.)
origin/security-auditis handled per your answer above.git branch -rshows onlyorigin/main(plusorigin/HEAD).Note
This is a remote-administration task, not a code change — there is no PR to
open and no
make checkto run. It will be executed directly against theremote once #7 has landed and you have answered on
security-audit.Assigning to @sneak for the
security-auditdecision.Manager note — DoD item 1 is done.
feat/initial-siteis deleted.It was safe and needed no decision: zero commits unique to the branch, merged
via #2 in February. The only thing holding it was the push trigger in
deploy.yml, and that was removed when #7 merged (PR #17, now onmain), sodeleting it can no longer affect any workflow.
Also deleted
pin-deploy-workflow-refs, the merged branch from PR #17. Notpart of this issue's scope, just routine cleanup of a branch that has served
its purpose.
Remaining branches on the remote:
mainandsecurity-audit.Still blocked on @sneak: what to do with
security-audit. Options and myrecommendation are in the issue body above; short version is that it holds
seven unmerged commits from an old recon exercise plus a workflow that fires on
push to that branch, the tip is a harmless placeholder, and I recommend
deleting it (Option A). I am not destroying unmerged history without your
answer. This issue stays open and assigned to you until then.