ci: remove redundant AWS and PG env vars from workflow#2112
Merged
duckduckgrayduck merged 1 commit intoMuckRock:masterfrom Jan 12, 2026
Merged
ci: remove redundant AWS and PG env vars from workflow#2112duckduckgrayduck merged 1 commit intoMuckRock:masterfrom
duckduckgrayduck merged 1 commit intoMuckRock:masterfrom
Conversation
AWS credentials are already set to placeholder values in test.py settings, so they do not need to be passed from workflow secrets. PG_USER and PG_PASSWORD are also unused since DATABASE_URL is hardcoded with the correct values. This fixes issue MuckRock#2111 by reducing the number of required secrets for external contributors who want to run CI checks on their forks.
Contributor
Author
|
@duckduckgrayduck, this should slightly improve the issue noted in #2111 right? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes AWS credentials and PG user/password environment variables from the CI workflow that are redundant or unused.
Changes
Rationale
AWS credentials
The test settings already override these with placeholder values at muckrock/settings/test.py:55-56:
PG credentials
PG_USER and PG_PASSWORD are not used because the database configuration extracts credentials from DATABASE_URL instead. The workflow uses
DJANGO_SETTINGS_MODULE=muckrock.settings.test, which inherits from base.py where DATABASE_URL is parsed at muckrock/settings/base.py:589-604:Since DATABASE_URL is hardcoded at .github/workflows/test.yml:125 with the correct postgres service credentials (
postgresql://test:postgres@localhost:5432/muckrock), the separate PG_USER and PG_PASSWORD env vars are redundant.Note: PG_USER/PG_PASSWORD are only used by the codeship.py settings file, which is not used by this workflow.
Impact
This partially addresses issue #2111 by reducing the number of repository secrets required for CI to pass. External contributors forking the repository won't need to set these specific secrets to run tests.