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

CI/CD - Fail to publish release due to EGITNOPERMISSION #299

Open
ryshu opened this issue Jun 24, 2024 · 0 comments
Open

CI/CD - Fail to publish release due to EGITNOPERMISSION #299

ryshu opened this issue Jun 24, 2024 · 0 comments

Comments

@ryshu
Copy link
Collaborator

ryshu commented Jun 24, 2024

Hi @unicodeveloper,

I think the CI/CD Github token as expired since we cannot release anymore (401 - Bad Credentials).

[11:16:08 AM] [semantic-release] › ✖  An error occurred while running semantic-release: RequestError [HttpError]: Bad credentials
    at /home/runner/work/_actions/cycjimmy/semantic-release-action/v3/node_modules/@octokit/request/dist-node/index.js:122:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 401,
  response: {
    url: 'https://api.github.com/repos/novuhq/novu-python',
    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',
      connection: 'close',
      'content-length': '95',
      'content-security-policy': "default-src 'none'",
      'content-type': 'application/json; charset=utf-8',
      date: 'Sat, 22 Jun 2024 11:16:08 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': 'E0D8:1D4428:1B36685:2FBD4CF:6676B278',
      'x-ratelimit-limit': '60',
      'x-ratelimit-remaining': '59',
      'x-ratelimit-reset': '1719058568',
      '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: 'GET',
    url: 'https://api.github.com/repos/novuhq/novu-python',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-rest.js/19.0.13 octokit-core.js/4.2.4 Node.js/16.20.2 (linux; x64)',
      authorization: 'token [REDACTED]'
    },
    request: { agent: undefined, hook: [Function: bound bound register] }
  },
  pluginName: '@semantic-release/github'
}
[11:16:08 AM] [semantic-release] › ✖  EGITNOPERMISSION Cannot push to the Git repository.
semantic-release cannot push the version tag to the branch main on the remote Git repository with URL https://x-access-token:[secure]@github.com/novuhq/novu-python.

This can be caused by:

    * a misconfiguration of the repositoryUrl (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#repositoryurl) option
    * the repository being unavailable
    * or missing push permission for the user configured via the Git credentials on your CI environment (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/ci-configuration.md#authentication)

Error: SemanticReleaseError: Cannot push to the Git repository.

https://github.com/novuhq/novu-python/actions/runs/9625067659/job/26549545319

Fix of #295 is stuck in main branch.

Available for some tests.

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