Skip to content

fix: remove GitHub VCS repo and make token optional#146

Open
jackwrfuller wants to merge 1 commit into
govCMS:developfrom
jackwrfuller:remove-dependency-on-github-token
Open

fix: remove GitHub VCS repo and make token optional#146
jackwrfuller wants to merge 1 commit into
govCMS:developfrom
jackwrfuller:remove-dependency-on-github-token

Conversation

@jackwrfuller
Copy link
Copy Markdown

@jackwrfuller jackwrfuller commented May 10, 2026

Description

Internal ticket: GOVCMS-14815

This PR removes the github vcs repository since it is redundant, and also makes the setting of the GOVCMS_GITHUB_TOKEN optional at build time.

This token is required because Packagist functions only as a metadata index and does not host packages directly. Composer frequently falls back to the GitHub HTTP API to resolve refs, fetch composer.json files, and download package distributions for non-Drupal dependencies (Symfony, Doctrine, Guzzle, etc.). Anonymous GitHub API access is limited to 60 requests per hour per IP, which is sufficient for local development but causes rate limit failures in shared environments (like GovCMS) where multiple builds share the same egress IP.

GovCMS sets this variable in production on project provisioning so customers do not have to perform this task. Locally however, there is no need for them to set this token.

@jackwrfuller jackwrfuller force-pushed the remove-dependency-on-github-token branch from 810050d to 7a5a803 Compare May 10, 2026 23:10
@jackwrfuller jackwrfuller requested review from stooit and yusufhm May 10, 2026 23:45
@jackwrfuller jackwrfuller force-pushed the remove-dependency-on-github-token branch from 1a0ecf6 to 0e806d0 Compare May 11, 2026 00:34
@jackwrfuller jackwrfuller changed the title fix: remove GOVCMS_GITHUB_TOKEN fix: remove GitHub VCS repo and make token optional May 13, 2026
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