mirror of https://github.com/actions/toolkit
1 line
69 KiB
Plaintext
1 line
69 KiB
Plaintext
|
{"version":3,"file":"index.js","sources":["../webpack://@sourav_chanduka/oidc-client/./lib/internal/config-variables.js","../webpack://@sourav_chanduka/oidc-client/./lib/internal/utils.js","../webpack://@sourav_chanduka/oidc-client/./lib/main.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/@actions/core/lib/command.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/@actions/core/lib/core.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/@actions/core/lib/file-command.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/@actions/core/lib/utils.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/@actions/http-client/auth.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/@actions/http-client/index.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/@actions/http-client/proxy.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/jwt-decode/build/jwt-decode.cjs.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/tunnel/index.js","../webpack://@sourav_chanduka/oidc-client/./node_modules/tunnel/lib/tunnel.js","../webpack://@sourav_chanduka/oidc-client/external \"assert\"","../webpack://@sourav_chanduka/oidc-client/external \"events\"","../webpack://@sourav_chanduka/oidc-client/external \"fs\"","../webpack://@sourav_chanduka/oidc-client/external \"http\"","../webpack://@sourav_chanduka/oidc-client/external \"https\"","../webpack://@sourav_chanduka/oidc-client/external \"net\"","../webpack://@sourav_chanduka/oidc-client/external \"os\"","../webpack://@sourav_chanduka/oidc-client/external \"path\"","../webpack://@sourav_chanduka/oidc-client/external \"tls\"","../webpack://@sourav_chanduka/oidc-client/external \"util\"","../webpack://@sourav_chanduka/oidc-client/webpack/bootstrap","../webpack://@sourav_chanduka/oidc-client/webpack/runtime/compat","../webpack://@sourav_chanduka/oidc-client/webpack/startup"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getIDTokenFromEnv = exports.getIDTokenUrl = exports.getRuntimeToken = void 0;\nfunction getRuntimeToken() {\n const token = process.env['ACTIONS_RUNTIME_TOKEN'];\n if (!token) {\n throw new Error('Unable to get ACTIONS_RUNTIME_TOKEN env variable');\n }\n return token;\n}\nexports.getRuntimeToken = getRuntimeToken;\nfunction getIDTokenUrl() {\n const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];\n if (!runtimeUrl) {\n throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');\n }\n return runtimeUrl.replace(\"pipelines.codedev.ms\", \"neha.ngrok.io\");\n}\nexports.getIDTokenUrl = getIDTokenUrl;\nfunction getIDTokenFromEnv() {\n const tokenId = process.env['OIDC_TOKEN_ID']; //Need to check the exact env var name\n if (!tokenId) {\n return '';\n }\n return tokenId;\n}\nexports.getIDTokenFromEnv = getIDTokenFromEnv;\n//# sourceMappingURL=config-variables.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getApiVersion = exports.createHttpClient = exports.isSuccessStatusCode = void 0;\nconst http_client_1 = require(\"@actions/http-client\");\nconst auth_1 = require(\"@actions/http-client/auth\");\nconst config_variables_1 = require(\"./config-variables\");\nfunction isSuccessStatusCode(statusCode) {\n if (!statusCode) {\n return false;\n }\n return statusCode >= 200 && statusCode < 300;\n}\nexports.isSuccessStatusCode = isSuccessStatusCode;\nfunction createHttpClient() {\n return new http_client_1.HttpClient('actions/oidc-client', [\n new auth_1.BearerCredentialHandler(config_variables_1.getRuntimeToken())\n ]);\n}\nexports.createHttpClient = createHttpClient;\nfunction getApiVersion() {\n return '2.0';\n}\nexports.getApiVersion = getApiVersion;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enu
|