List the exact scopes the Deploy token needs

Open Beginner friendly
#472 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, python

Research direction

Read the README's “GitHub environments” section around line 69, then check the Deploy workflow comments and docs/runbook.md for matching token scope guidance. Update those references with the listed app, actions, regions, sizes, and database scopes, explain the database requirement and token replacement steps, and say to grant no other scopes. Done when the README and any matching workflow or runbook claims consistently describe the minimum scopes.

Written by the indexing model from the issue text.

Description

area:infra documentation priority:p2 size:S

Problem: README "GitHub environments" (line 69) says the production environment's DIGITALOCEAN_ACCESS_TOKEN is "a DigitalOcean token that can read and update the app". A custom-scoped token with only app read and update (plus the actions, regions, and sizes read scopes that app:update requires) failed to apply the pinned spec on the first v0.1.0 deploy. Adding database read and update fixed it, probably because the spec attaches the managed Postgres and Valkey clusters. DigitalOcean lists the database scopes as optional for app:update, so the README is the only place that can say they are needed here.

Scope:

  • README line 69 lists the exact custom scopes the Deploy token needs: app read and update; actions, regions, and sizes read; database read and update. It says to grant nothing else.
  • Say why the database scopes are needed, and how to replace the token when a scope is missing (a new token, a new secret value in the production environment, then delete the old token)
  • Check the Deploy workflow's comments and docs/runbook.md for the same claim, and fix any you find

Acceptance criteria:

  • Someone following the README creates a token that deploys on the first try, with no extra scopes

Related: #63 (Deploy workflow), #103

Size: S

Dominant language
Python
Stars
0
Forks
1
Avg merge
1h 7m
Merged PRs (30d)
206

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openpickleball/backend

All issues in openpickleball/backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.