Skip to content

fix(submit): gate submit on maintain+ permission, not namespace ownership - #1

Merged
NewtTheWolf merged 4 commits into
mainfrom
fix/submit-maintain-permission
Jul 24, 2026
Merged

fix(submit): gate submit on maintain+ permission, not namespace ownership#1
NewtTheWolf merged 4 commits into
mainfrom
fix/submit-maintain-permission

Conversation

@NewtTheWolf

Copy link
Copy Markdown
Contributor

Problem

checkOwnership required the repo to live in the user's personal namespace (owner.login === username). Org/group repos were rejected even with full write/admin access, and the submit check was stricter than the repo-picker list (which allowed push).

Fix

  • GitHub/Gitea (providers.ts): accept permissions.admin || permissions.maintain. Gitea has no maintain field, so admin is its ceiling equivalent (noted inline).
  • GitLab (providers.ts): accept access_level >= 40 (Maintainer=40, Owner=50), max of project + inherited group access.
  • list-repos aligned: filter admin || pushadmin || maintain; GitLab list already used min_access_level=40.
  • Dropped now-unused username param from checkOwnership + helpers; updated both callers (submit/oauth.ts, submit/preview.ts).

tsc + biome clean.

….13.0

Stale codeberg image.repository + appVersion 0.11.1 would clobber the live
0.13.0 deploy on any chart re-apply. Point the default at GHCR, bump chart
version + appVersion to 0.13.0, and retarget sources/maintainer URLs to the
GitHub org.
Handoff for the Tabularis client: JWKS + integrity endpoints, JWS/Ed25519
verification flow, per-asset SHA-256 checks via @tabularium/manifest, and the
release-asset requirement for a signed install.
…ship

checkOwnership previously required the repo to live in the user's personal
namespace (owner.login === username), rejecting org/group repos even with
full write access. Now accepts maintain+ (GitHub/Gitea admin||maintain,
GitLab access_level>=40). list-repos filter aligned (push -> maintain).
Gitea has no maintain field, so admin is its ceiling equivalent.
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
tabularium-docs Skipped Skipped Jul 24, 2026 5:15pm
tabularium-website Skipped Skipped Jul 24, 2026 5:15pm

Request Review

@vercel
vercel Bot temporarily deployed to Preview – tabularium-docs July 24, 2026 17:15 Inactive
@vercel
vercel Bot temporarily deployed to Preview – tabularium-website July 24, 2026 17:15 Inactive
@NewtTheWolf
NewtTheWolf merged commit 7bfbb9e into main Jul 24, 2026
9 checks passed
@NewtTheWolf
NewtTheWolf deleted the fix/submit-maintain-permission branch July 24, 2026 17:42
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