From 51c8e86c97e6898e8486c86685efdb847179f4cf Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Sat, 3 Oct 2026 11:13:09 +0000 Subject: [PATCH] tools: read the upstream project id anonymously A fine-grained token can be scoped to the fork only; fdroiddata is public, so its project id needs no auth. --- tools/fdroid-submit.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fdroid-submit.nu b/tools/fdroid-submit.nu index c1f308f6..eaea54b3 100644 --- a/tools/fdroid-submit.nu +++ b/tools/fdroid-submit.nu @@ -44,7 +44,7 @@ def main [ error make { msg: "GL_TOKEN is unset; it needs a GitLab token with the 'api' scope" } } let headers = { "PRIVATE-TOKEN": $token } - let upstream_id = (http get $"($api)/projects/($upstream)" --headers $headers | get id) + let upstream_id = (http get $"($api)/projects/($upstream)" | get id) let branch_exists = (try { http get $"($api)/projects/($fork)/repository/branches/($branch)" --headers $headers } catch { null }) | is-not-empty if not $branch_exists {