Skip to content

Commit

Permalink
Prioritize secret over token
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurynas Butkus committed Aug 4, 2024
1 parent 232d30d commit 0bcb1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
- run: bundle install
- env:
CONVERT_API_SECRET: ${{ secrets.CONVERTAPI_SECRET }}
# CONVERT_API_TOKEN: ${{ secrets.CONVERTAPI_TOKEN }}
CONVERT_API_TOKEN: ${{ secrets.CONVERTAPI_TOKEN }}
run: bundle exec rake spec
2 changes: 1 addition & 1 deletion lib/convert_api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def build_form_data(params)
end

def authentication
return { Token: config.token } unless config.token.nil?
return { Secret: config.api_secret } unless config.api_secret.nil?
return { Token: config.token } unless config.token.nil?

nil
end
Expand Down

0 comments on commit 0bcb1d4

Please sign in to comment.