Skip to content

Commit

Permalink
Add web proxy support using https_proxy environment variable (#499)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas S. Castellano <[email protected]>
  • Loading branch information
n2qz and Nicholas S. Castellano authored Aug 16, 2020
1 parent 8796f42 commit a04a006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion checkov/common/bridgecrew/platform_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
UNAUTHORIZED_MESSAGE = 'User is not authorized to access this resource with an explicit deny'

DEFAULT_REGION = "us-west-2"
http = urllib3.PoolManager()

try:
http = urllib3.ProxyManager(os.environ['https_proxy'])
except KeyError:
http = urllib3.PoolManager()


class BcPlatformIntegration(object):
Expand Down

0 comments on commit a04a006

Please sign in to comment.