Remove protocol prepending (#66)
This code is no longer needed. Instead, we will enforce users to add the protocol themselves.
This commit is contained in:
9
dist/index.js
vendored
9
dist/index.js
vendored
@@ -30086,15 +30086,6 @@ const validateAuth = () => {
|
||||
throw new Error(authErr);
|
||||
}
|
||||
const authType = isConnect ? "Connect" : "Service account";
|
||||
// Adjust Connect host to have a protocol
|
||||
if (process.env[envConnectHost] &&
|
||||
// The following lint error is not an issue because we are checking for the presence of the `http://` prefix;
|
||||
// we are not using it as an insecure connection protocol to link out to another resource.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
!process.env[envConnectHost].startsWith("http://") &&
|
||||
!process.env[envConnectHost].startsWith("https://")) {
|
||||
process.env[envConnectHost] = `http://${process.env[envConnectHost]}`;
|
||||
}
|
||||
core.info(`Authenticated with ${authType}.`);
|
||||
};
|
||||
const extractSecret = (envName, shouldExportEnv) => {
|
||||
|
||||
Reference in New Issue
Block a user