Set label workflow is failing due to lack of permissions ?
Opened this issue · 0 comments
Excoriate commented
🪲 Describe the Bug
Set labels workflow is failing with
Changed lines: 105
Matching label: size/L
RequestError [HttpError]: Resource not accessible by integration
at /home/runner/work/_actions/pascalgn/size-label-action/v0.4.3/dist/index.js:2582:23
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async main (/home/runner/work/_actions/pascalgn/size-label-action/v0.4.3/dist/index.js:97:5) {
status: 403,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Tue, 25 Jul 2023 09:23:35 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '9C32:662A:C06F0:1855AB:64BF9497',
'x-ratelimit-limit': '1000',
'x-ratelimit-remaining': '998',
'x-ratelimit-reset': '1690280615',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '2',
'x-xss-protection': '0'
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/Excoriate/stilettov2/issues/6/labels',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'pascalgn/size-label-action octokit-rest.js/18.5.5 octokit-core.js/3.4.0 Node.js/16.16.0 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"labels":["size/L"]}',
request: { hook: [Function: bound bound register] }
},
documentation_url: 'https://docs.github.com/rest/issues/labels#add-labels-to-an-issue'
}
E.g.: https://github.com/Excoriate/stilettov2/actions/runs/5655003147/job/15319207228