Merge pull request #38 from actions/fix-cancell-token

Fix cancel deployment token is empty
This commit is contained in:
Mingzi
2022-06-08 14:19:14 -07:00
committed by GitHub
4 changed files with 24 additions and 3 deletions

2
dist/index.js vendored
View File

@@ -7481,7 +7481,7 @@ async function cancelHandler(evtOrExitCodeOrError) {
{
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
Authorization: `Bearer ${deployment.githubToken}`,
'Content-type': 'application/json'
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

21
package-lock.json generated
View File

@@ -7123,6 +7123,20 @@
"is-typedarray": "^1.0.0"
}
},
"node_modules/typescript": {
"version": "4.7.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz",
"integrity": "sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==",
"dev": true,
"peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=4.2.0"
}
},
"node_modules/unbox-primitive": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz",
@@ -12709,6 +12723,13 @@
"is-typedarray": "^1.0.0"
}
},
"typescript": {
"version": "4.7.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz",
"integrity": "sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==",
"dev": true,
"peer": true
},
"unbox-primitive": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz",

View File

@@ -24,7 +24,7 @@ async function cancelHandler(evtOrExitCodeOrError) {
{
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
Authorization: `Bearer ${deployment.githubToken}`,
'Content-type': 'application/json'
}
}