Skip to content

Private repo bounties for GitHub readers - #32

Merged
widrss merged 6 commits into
mainfrom
feat/private-repo-bounties
Nov 7, 2026
Merged

widrss merged 6 commits into
mainfrom
feat/private-repo-bounties

Conversation

@widrss

@widrss widrss commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Private and internal GitHub repos can take bounties again. A bounty is visible and claimable only by a signed-in user whose linked GitHub account has read access on that repo, matched by GitHub user id. Anonymous callers, and anyone without access, still see only public bounties and get the same 404 as a missing id.

  • Access. Collaborator checks are cached for 5 minutes. A denial is cached. A GitHub error is not, and it hides the bounty. The funder, the requester, and an active lease holder can still open a bounty they already hold. Submit returns repo_access_revoked when a private-repo solver loses read access.
  • Closed gaps. GET /api/submissions/{id}, POST /api/bounties/{id}/claim, and the share badge no longer return private bounty data to a stranger.
  • Still public-only. Completed results, stats, cyber tasks, public training cards, share pages, and the sitemap.
  • Advertising. Onboarding and enabling no longer refuse a private repo. Unknown visibility still fails closed. Code-scanning alerts with a security severity open a tier: security bounty on a private or internal repo and are still never opened on a public repo.
  • Visibility changes. A repository privatized or publicized webhook updates the stored visibility and does not cancel bindings.
  • Restore. python -m app.cli.github_visibility readvertise --repo OWNER/NAME brings back open labelled issues whose bindings the old public-only backfill cancelled. --dry-run writes nothing.
  • UI. Marketplace cards show a Private repo badge. Setup tells the funder to add solvers as collaborators.

Pairs with the MCP change that sends the caller's gateway token on bounty list and status. No migration.

Backend: 1383 passed. Marketplace tsc clean. Ruff clean on the edited files.

Made with Cursor

widrss and others added 6 commits November 6, 2026 19:44
Onboarding and alert dispatch no longer refuse a private repo. Security-severity code scanning still does not open a public issue. A repository visibility webhook updates the stored value, and readvertise restores bindings the old public-only backfill cancelled.

Co-authored-by: Cursor <cursoragent@cursor.com>
A private or internal bounty is visible and claimable when the caller's linked GitHub account has read access, matched by user id. Anonymous callers stay on public bounties. Strangers get the same 404 as a missing bounty, and a solver who loses access can no longer submit.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cards and the bounty page show a Private repo badge. Repo setup names a private repository and tells the funder to add solvers as collaborators.

Co-authored-by: Cursor <cursoragent@cursor.com>
A private bounty is hidden before the trust check, so a stranger still gets 404. Public claims still deny trust before looking up the account. Submit enforces repo access only when the repo is private or internal.

Co-authored-by: Cursor <cursoragent@cursor.com>
@widrss
widrss merged commit 520b6b6 into main Nov 7, 2026
widrss added a commit that referenced this pull request Nov 8, 2026
Challenge engine fixes from the PR #32 pilot, plus the pilot harness
@widrss
widrss deleted the feat/private-repo-bounties branch November 18, 2026 00:20
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.

1 participant