Commit dd65aac 1 parent 069325a commit dd65aac Copy full SHA for dd65aac
File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
const core = require ( '@actions/core' )
2
2
const AWS = require ( 'aws-sdk' )
3
+ const proxy = require ( 'proxy-agent' ) ;
3
4
4
5
/**
5
6
* @typedef {{
@@ -128,10 +129,10 @@ const parseIgnoreList = (list) => {
128
129
}
129
130
130
131
function configureGlobalProxy ( proxyUrl ) {
131
- var proxy = require ( 'proxy-agent' ) ;
132
- AWS . config . update ( {
133
- httpOptions : { agent : proxy ( proxyUrl ) }
134
- } ) ;
132
+ core . debug ( "Using proxy URL: " + proxyUrl ) ;
133
+ AWS . config . update ( {
134
+ httpOptions : { agent : proxy ( proxyUrl ) }
135
+ } ) ;
135
136
}
136
137
137
138
const main = async ( ) => {
@@ -141,9 +142,8 @@ const main = async () => {
141
142
const failThreshold = core . getInput ( 'fail_threshold' ) || 'high'
142
143
const ignoreList = parseIgnoreList ( core . getInput ( 'ignore_list' ) )
143
144
144
- if ( proxyUrl = process . env . HTTPS_PROXY
145
- || process . env . https_proxy ) {
146
- core . debug ( "Using proxy URL: " + proxyUrl ) ;
145
+ const proxyUrl = process . env . HTTPS_PROXY || process . env . https_proxy
146
+ if ( proxyUrl !== undefined ) {
147
147
configureGlobalProxy ( proxyUrl )
148
148
}
149
149
You can’t perform that action at this time.
0 commit comments