@@ -199383,6 +199383,15 @@ module.exports = /******/ (function (modules, runtime) {
199383199383 // we need to finish reading the response before reassigning response
199384199384 // which will leak the open socket.
199385199385 await response.readBody();
199386+ // strip authorization header if redirected to a different hostname
199387+ if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
199388+ for (let header in headers) {
199389+ // header names are case insensitive
199390+ if (header.toLowerCase() === "authorization") {
199391+ delete headers[header];
199392+ }
199393+ }
199394+ }
199386199395 // let's make the request with the new redirectUrl
199387199396 info = this._prepareRequest(verb, parsedRedirectUrl, headers);
199388199397 response = await this.requestRaw(info, data);
@@ -220945,47 +220954,19 @@ module.exports = /******/ (function (modules, runtime) {
220945220954
220946220955 /***/ 7215: /***/ function (module) {
220947220956 module.exports = {
220948- _from: "@octokit/rest@^16.43.1",
220949- _id: "@octokit/
[email protected] ",
220950- _inBundle: false,
220951- _integrity:
220952- "sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",
220953- _location: "/@octokit/rest",
220954- _phantomChildren: {
220955- "@octokit/types": "2.5.1",
220956- deprecation: "2.3.1",
220957- once: "1.4.0",
220958- },
220959- _requested: {
220960- type: "range",
220961- registry: true,
220962- raw: "@octokit/rest@^16.43.1",
220963- name: "@octokit/rest",
220964- escapedName: "@octokit%2frest",
220965- scope: "@octokit",
220966- rawSpec: "^16.43.1",
220967- saveSpec: null,
220968- fetchSpec: "^16.43.1",
220969- },
220970- _requiredBy: ["/@actions/github"],
220971- _resolved:
220972- "https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",
220973- _shasum: "3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b",
220974- _spec: "@octokit/rest@^16.43.1",
220975- _where:
220976- "/Users/ryanemer/actions/aws-codebuild-run-project/node_modules/@actions/github",
220977- author: { name: "Gregor Martynus", url: "https://github.com/gr2m" },
220978- bugs: { url: "https://github.com/octokit/rest.js/issues" },
220979- bundleDependencies: false,
220980- bundlesize: [
220981- { path: "./dist/octokit-rest.min.js.gz", maxSize: "33 kB" },
220982- ],
220957+ name: "@octokit/rest",
220958+ version: "16.43.1",
220959+ publishConfig: { access: "public" },
220960+ description: "GitHub REST API client for Node.js",
220961+ keywords: ["octokit", "github", "rest", "api-client"],
220962+ author: "Gregor Martynus (https://github.com/gr2m)",
220983220963 contributors: [
220984220964 { name: "Mike de Boer", email: "
[email protected] " },
220985220965 { name: "Fabian Jakobs", email: "
[email protected] " },
220986220966 { name: "Joe Gallo", email: "
[email protected] " },
220987220967 { name: "Gregor Martynus", url: "https://github.com/gr2m" },
220988220968 ],
220969+ repository: "https://github.com/octokit/rest.js",
220989220970 dependencies: {
220990220971 "@octokit/auth-token": "^2.4.0",
220991220972 "@octokit/plugin-paginate-rest": "^1.1.1",
@@ -221004,8 +220985,6 @@ module.exports = /******/ (function (modules, runtime) {
221004220985 once: "^1.4.0",
221005220986 "universal-user-agent": "^4.0.0",
221006220987 },
221007- deprecated: false,
221008- description: "GitHub REST API client for Node.js",
221009220988 devDependencies: {
221010220989 "@gimenete/type-writer": "^0.1.3",
221011220990 "@octokit/auth": "^1.1.1",
@@ -221041,58 +221020,57 @@ module.exports = /******/ (function (modules, runtime) {
221041221020 "webpack-bundle-analyzer": "^3.0.0",
221042221021 "webpack-cli": "^3.0.0",
221043221022 },
221044- files: ["index.js", "index.d.ts", "lib", "plugins"],
221045- homepage: "https://github.com/octokit/rest.js#readme",
221046- keywords: ["octokit", "github", "rest", "api-client"],
221047- license: "MIT",
221048- name: "@octokit/rest",
221049- nyc: { ignore: ["test"] },
221050- publishConfig: { access: "public" },
221051- release: {
221052- publish: [
221053- "@semantic-release/npm",
221054- {
221055- path: "@semantic-release/github",
221056- assets: ["dist/*", "!dist/*.map.gz"],
221057- },
221058- ],
221059- },
221060- repository: {
221061- type: "git",
221062- url: "git+https://github.com/octokit/rest.js.git",
221063- },
221023+ types: "index.d.ts",
221064221024 scripts: {
221065- build: "npm-run-all build:*",
221066- "build:browser": "npm-run-all build:browser:*",
221067- "build:browser:development":
221068- "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json",
221069- "build:browser:production":
221070- "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map",
221071- "build:ts": "npm run -s update-endpoints:typescript",
221072221025 coverage: "nyc report --reporter=html && open coverage/index.html",
221073- "generate-bundle-report":
221074- "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
221075221026 lint:
221076221027 "prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",
221077221028 "lint:fix":
221078221029 "prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",
221079- "postvalidate:ts":
221080- "tsc --noEmit --target es6 test/typescript-validate.ts",
221081- "prebuild:browser": "mkdirp dist/",
221082221030 pretest: "npm run -s lint",
221083- "prevalidate:ts": "npm run -s build:ts",
221084- "start-fixtures-server": "octokit-fixtures-server",
221085221031 test: 'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',
221086221032 "test:browser": "cypress run --browser chrome",
221033+ build: "npm-run-all build:*",
221034+ "build:ts": "npm run -s update-endpoints:typescript",
221035+ "prebuild:browser": "mkdirp dist/",
221036+ "build:browser": "npm-run-all build:browser:*",
221037+ "build:browser:development":
221038+ "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json",
221039+ "build:browser:production":
221040+ "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map",
221041+ "generate-bundle-report":
221042+ "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
221087221043 "update-endpoints": "npm-run-all update-endpoints:*",
221088221044 "update-endpoints:fetch-json":
221089221045 "node scripts/update-endpoints/fetch-json",
221090221046 "update-endpoints:typescript":
221091221047 "node scripts/update-endpoints/typescript",
221048+ "prevalidate:ts": "npm run -s build:ts",
221092221049 "validate:ts": "tsc --target es6 --noImplicitAny index.d.ts",
221050+ "postvalidate:ts":
221051+ "tsc --noEmit --target es6 test/typescript-validate.ts",
221052+ "start-fixtures-server": "octokit-fixtures-server",
221093221053 },
221094- types: "index.d.ts",
221095- version: "16.43.1",
221054+ license: "MIT",
221055+ files: ["index.js", "index.d.ts", "lib", "plugins"],
221056+ nyc: { ignore: ["test"] },
221057+ release: {
221058+ publish: [
221059+ "@semantic-release/npm",
221060+ {
221061+ path: "@semantic-release/github",
221062+ assets: ["dist/*", "!dist/*.map.gz"],
221063+ },
221064+ ],
221065+ },
221066+ bundlesize: [
221067+ { path: "./dist/octokit-rest.min.js.gz", maxSize: "33 kB" },
221068+ ],
221069+ _resolved:
221070+ "https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",
221071+ _integrity:
221072+ "sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",
221073+ _from: "@octokit/
[email protected] ",
221096221074 };
221097221075
221098221076 /***/
0 commit comments