github-app-token
github-app-token copied to clipboard
"Error: Could not revoke installation access token." returned for jobs longer than 60 minutes
Not sure for the exact reason, but it looks like if the task takes longer than 60 minutes, on Post Run tibdex/[email protected] an error occurs:
Error: Could not revoke installation access token.
Post job cleanup.
/usr/bin/docker exec f4913acb[2](https://github.com/xxx/yyy/actions/runs/zzz/job/zzz?pr=441#step:39:2)2122de2bff96a........7ffc89be5e341cd6053ae1fea381 sh -c "cat /etc/*release | grep ^ID"
Error: Could not revoke installation access token.
at revokeInstallationAccessToken (file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:70955)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:70644
at async run (file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:71110)
at async file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:70457 {
[cause]: RequestError [HttpError]: Bad credentials
at file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:1:4570[3](https://github.com/xxx/yyy/actions/runs/zzz/job/zzz?pr=441#step:39:3)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async revokeInstallationAccessToken (file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:7089[4](https://github.com/xxx/yyy/actions/runs/zzz/job/zzz?pr=441#step:39:4))
at async file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:70644
at async run (file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:71110)
at async file:///__w/_actions/tibdex/github-app-token/v2.1/dist/post/index.js:7:704[5](https://github.com/xxx/yyy/actions/runs/zzz/job/zzz?pr=441#step:39:5)7 {
status: 401,
response: {
url: 'https://api.github.com/installation/token',
status: 401,
headers: [Object],
data: [Object]
},
request: {
method: 'DELETE',
url: 'https://api.github.com/installation/token',
headers: [Object],
request: [Object]
}
}
}
Is there a way to fix it?