Skip to content

Commit

Permalink
Use fake credentials in test environment
Browse files Browse the repository at this point in the history
The dependabot engine can't access secrets in PRs for security reasons.
  • Loading branch information
pixeltrix committed Nov 6, 2024
1 parent 62a2d2b commit b86e51a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
APPLICATION_HOST=localhost

# These are fake credentials just formatted correctly so the client accepts them
NOTIFY_API_KEY=test-f0cf3daf-1e71-4401-9534-955267607d64-a34eb6f8-9fb9-4fb6-9931-ef69bd51cbc1
NOTIFY_CALLBACK_TOKEN=8659aa65-61d4-4b58-9f54-0917b28b874a
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ jobs:
- name: Run rspec specs
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }}
NOTIFY_CALLBACK_TOKEN: ${{ secrets.NOTIFY_CALLBACK_TOKEN }}
RAILS_ENV: test
run: |
bundle exec rspec
Expand Down Expand Up @@ -179,7 +177,5 @@ jobs:
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
RAILS_ENV: test
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }}
NOTIFY_CALLBACK_TOKEN: ${{ secrets.NOTIFY_CALLBACK_TOKEN }}
run: |
bundle exec cucumber

0 comments on commit b86e51a

Please sign in to comment.