mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: use basic auth to trigger CI if either a username OR password is provided
This commit is contained in:
@@ -46,7 +46,7 @@ async function makeRequest ({ auth, url, headers, body, method }) {
|
||||
headers: clonedHeaders,
|
||||
body,
|
||||
method,
|
||||
auth: auth && auth.password ? `${auth.username}:${auth.password}` : undefined
|
||||
auth: auth && (auth.username || auth.password) ? `${auth.username}:${auth.password}` : undefined
|
||||
});
|
||||
if (response.statusCode < 200 || response.statusCode >= 300) {
|
||||
console.error('Error: ', `(status ${response.statusCode})`, response.body);
|
||||
|
||||
Reference in New Issue
Block a user