Skip to content

Commit

Permalink
add: Setenv HTTPS_PROXY for aws sdk (#1794)
Browse files Browse the repository at this point in the history
Co-authored-by: wadahiroka <wadahiroka@192.168.0.8>
  • Loading branch information
wadda0714 and wadahiroka authored Nov 20, 2023
1 parent 4ffa067 commit cbece1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions saas/saas.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ func (w Writer) Write(rs ...models.ScanResult) error {
if err != nil {
return xerrors.Errorf("Failed to new aws session. err: %w", err)
}
// For S3 upload of aws sdk
if err := os.Setenv("HTTPS_PROXY", config.Conf.HTTPProxy); err != nil {
return xerrors.Errorf("Failed to set HTTP proxy: %s", err)
}

svc := s3.New(sess)
for _, r := range rs {
Expand Down

0 comments on commit cbece1d

Please sign in to comment.