Closed
Description
Describe the bug
Recently got this error:
RequestError [HttpError]: Bad credentials
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:9537:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 401,
response: {
url: 'https://api.github.com/repos/emacs-tree-sitter/tree-sitter-langs/git/refs',
status: 401,
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',
'content-length': '95',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Mon, 24 Feb 2025 07:00:00 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '4381:16D7E4:1C4C25:3940B5:67BC18EF',
'x-ratelimit-limit': '60',
'x-ratelimit-remaining': '59',
'x-ratelimit-reset': '1740384000',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '1',
'x-xss-protection': '0'
},
data: {
message: 'Bad credentials',
documentation_url: 'https://docs.github.com/rest',
status: '401'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/emacs-tree-sitter/tree-sitter-langs/git/refs',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'actions/github-script octokit-core.js/5.0.1 Node.js/20.18.0 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"ref":"refs/tags/0.12.261","sha":"f41f6c72119f7337b5fe769e8458bfb37b2f8c[22](https://github.com/emacs-tree-sitter/tree-sitter-langs/actions/runs/13492482661/job/37692885430#step:6:23)"}',
request: {
agent: [Agent],
fetch: [Function: proxyFetch],
hook: [Function: bound bound register]
}
}
}
Expected behavior
It was working earlier last week with v5
, but today I got:
DeprecationWarning: Buffer() is deprecated due to security and usability issues.
Then I got Bad credentials 401
after I tried upgrading to v7
.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The workflow was working last week.
Metadata
Metadata
Assignees
Labels
No labels