Skip to content

Bootstrap: GitHub /user call is forbidden with an Actions token, leading to 1 missing Project #10

@aolieman

Description

@aolieman

We want to know if the GITHUB_TOKEN used in bootstrap.yml gives the desired increased rate limit. When processing the opengrants job queue locally, we can use the /user API endpoint to verify successful authentication. This is not allowed with the short-lived token that is available in the Actions environment.

Desired solution: do not change the auth itself. Use a different endpoint or possibly header on a call we're already making to log the effective GitHub API rate limit one single time.

user = _gh_client.get_user()

Replace this call with a method that reliably gets the effective rate limit across local and hosted environments. There is no real need currently to log the authenticated user.

Failure context in bootstrap log:

2026-03-17 11:09:23,162 INFO     pg_atlas.procrastinate.tasks: process_project: Lumenaut Pool (daoip-5:scf:project:lumenaut_pool)
2026-03-17 11:09:23,782 INFO     procrastinate.worker.worker: Starting job pg_atlas.procrastinate.tasks.process_project[3672](git_org_url='https://github.com/StellarCN', display_name='Python Stellar SDK', git_repo_url=None, activity_status='in-dev', project_metadata={'website': 'https://galactictalk.org/d/2007-python-stellar-sdk', 'description': 'Py-stellar-sdk is a Python library for communicating with a Stellar Horizon server. It is used for building Stellar apps on Python.', 'scf_category': 'Developer Tooling', 'scf_submissions': [{'round': 'SCF #1', 'title': 'Stellar Python SDK'}]}, extended_universe=False, project_canonical_id='daoip-5:scf:project:python_stellar_sdk')
2026-03-17 11:09:23,782 INFO     pg_atlas.procrastinate.tasks: process_project: Python Stellar SDK (daoip-5:scf:project:python_stellar_sdk)
Request GET /user failed with 403: Forbidden
2026-03-17 11:09:23,988 INFO     github.GithubRetry: Request GET /user failed with 403: Forbidden
2026-03-17 11:09:23,988 ERROR    procrastinate.worker: Job pg_atlas.procrastinate.tasks.process_project[3672](git_org_url='https://github.com/StellarCN', display_name='Python Stellar SDK', git_repo_url=None, activity_status='in-dev', project_metadata={'website': 'https://galactictalk.org/d/2007-python-stellar-sdk', 'description': 'Py-stellar-sdk is a Python library for communicating with a Stellar Horizon server. It is used for building Stellar apps on Python.', 'scf_category': 'Developer Tooling', 'scf_submissions': [{'round': 'SCF #1', 'title': 'Stellar Python SDK'}]}, extended_universe=False, project_canonical_id='daoip-5:scf:project:python_stellar_sdk') ended with status: Error, lasted 0.206 s

https://github.com/SCF-Public-Goods-Maintenance/pg-atlas-backend/actions/runs/23191048653/job/67386940226#step:6:760

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions