Skip to content

Commit 8472f80

Browse files
Weather API token fixes (#5)
1 parent 320a09a commit 8472f80

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,5 @@ jobs:
6666
bundler-cache: true
6767
- name: Run tests
6868
env:
69-
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
69+
WEATHER_API_TOKEN: ${{ secrets.WEATHER_API_TOKEN }}
7070
run: ./bin/rspec
71-

‎spec/cassettes/weather/forecast_failure.yml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎spec/cassettes/weather/forecast_success.yml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎spec/spec_helper.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
config.hook_into :webmock
103103
config.configure_rspec_metadata!
104104

105-
config.filter_sensitive_data('<WEATHER_API_KEY>') do
106-
Rails.application.credentials.dig(:weather_api, :token)
105+
config.filter_sensitive_data('<WEATHER_API_TOKEN>') do
106+
ENV['WEATHER_API_TOKEN'] || Rails.application.credentials.dig(:weather_api, :token)
107107
end
108108
end

0 commit comments

Comments
 (0)