Update to the latest version of @actions/github.
This commit is contained in:
parent
55458a1ab1
commit
9ed519fa12
419 changed files with 56978 additions and 151535 deletions
4
node_modules/@octokit/request-error/dist-src/index.js
generated
vendored
4
node_modules/@octokit/request-error/dist-src/index.js
generated
vendored
|
|
@ -18,14 +18,14 @@ export class RequestError extends Error {
|
|||
get() {
|
||||
logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
|
||||
return statusCode;
|
||||
}
|
||||
},
|
||||
});
|
||||
this.headers = options.headers || {};
|
||||
// redact request credentials without mutating original request options
|
||||
const requestCopy = Object.assign({}, options.request);
|
||||
if (options.request.headers.authorization) {
|
||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
||||
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"),
|
||||
});
|
||||
}
|
||||
requestCopy.url = requestCopy.url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue