Skip to content

Commit

Permalink
replace (deactivated) API_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Apr 12, 2023
1 parent 25477fd commit 1fb98c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/website.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def validate_domain_suffix
end

def site_scanner_json_request
url = "https://api.gsa.gov/technology/site-scanning/v1/websites?target_url_domain=#{domain}&api_key=GTanZOFHw4ilAiAXtnPkHOLyfEcnmww9GabQwinn&limit=10"
url = "https://api.gsa.gov/technology/site-scanning/v1/websites?target_url_domain=#{domain}&api_key=#{ENV.fetch('API_DATA_GOV_KEY')}&limit=10"
text = URI.open(url).read
rescue StandardError => e
"Error during Site Scanner API request for #{domain}.\n\n#{e}"
Expand Down

0 comments on commit 1fb98c0

Please sign in to comment.