Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad credentials 401 #552

Closed
jcs090218 opened this issue Feb 24, 2025 · 1 comment
Closed

Bad credentials 401 #552

jcs090218 opened this issue Feb 24, 2025 · 1 comment

Comments

@jcs090218
Copy link

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]
    }
  }
}

Full log: https://github.com/emacs-tree-sitter/tree-sitter-langs/actions/runs/13492482661/job/37692885430#step:6:22

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.

@jcs090218
Copy link
Author

PAT issue. Sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant