You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Policy: hold deleting a repository or project through GitHub's, GitLab's or Vercel's API #360
The blind E21 pool from #357 (by @juliasadler) showed that deleting a whole repository or project through a platform's API is only flagged, never held:
TK-A033 already holds merging a pull request through these same APIs (gh api, curl, wget, HTTPie, xh, GraphQL), so it is a good model to copy.
Task: hold (ask) a request that deletes a repository or project on GitHub, GitLab or Vercel: the DELETE method on /repos/<owner>/<repo>, /api/v4/projects/<id>, /v9/projects/<name> (and gh api -X DELETE repos/..., gh repo delete, glab repo delete, vercel remove), and the GraphQL deleteRepository mutation.
Add the calls above to tests/data/policy/deny/, and benign lookalikes to tests/data/policy/benign/: a GET of the same URLs, a DELETE of one issue comment (/repos/o/r/issues/comments/1), and a read-only GraphQL query.
Read past a newline in an earlier argument ([\w\W]*?, as TK-A033 does) and keep the pattern fast (the speed test in tests/test_policy2.py).
Add a docs/limits.md row for what it doesn't read (other forges, a body read from a file).
Done when: the deny cases are caught, E17 adds no false alarm (make eval), tracekit policy lint is clean and make test passes. Report the #357 pool's score after your change in the PR.
I'll take this. I'll add a rule next to TK-A033 that holds (ask) deleting a repository or project through the GitHub, GitLab and Vercel APIs (DELETE on /repos//, /api/v4/projects/, /v9/projects/; gh api -X DELETE repos/..., gh repo delete, glab repo delete, vercel remove; the GraphQL deleteRepository mutation), plus the deny/benign cases and a docs/limits.md row from the issue. Will also report the #357 pool's new score in the PR.
It's yours @juliasadler, thanks! Copying TK-A033's shape (and its [\w\W]*? across newlines) is exactly right. And thanks for stepping back on #361 so cleanly.
Activity
juliasadler commentedon Oct 24, 2026
I'll take this. I'll add a rule next to TK-A033 that holds (ask) deleting a repository or project through the GitHub, GitLab and Vercel APIs (DELETE on /repos//, /api/v4/projects/, /v9/projects/; gh api -X DELETE repos/..., gh repo delete, glab repo delete, vercel remove; the GraphQL deleteRepository mutation), plus the deny/benign cases and a docs/limits.md row from the issue. Will also report the #357 pool's new score in the PR.
LoopGlitch26 commentedon Oct 24, 2026
It's yours @juliasadler, thanks! Copying TK-A033's shape (and its
[\w\W]*?across newlines) is exactly right. And thanks for stepping back on #361 so cleanly.feat: add repository/project deletion rules (fixes Cygnux-Labs#360)
feat: add repository/project deletion rules (fixes Cygnux-Labs#360) (C…