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

"Resource not accessible by integration" when pushing to production #497

Closed
tbouffard opened this issue Jan 6, 2023 · 1 comment
Closed

Comments

@tbouffard
Copy link
Member

tbouffard commented Jan 6, 2023

Note: this doesn't fail the Netlify deployment

The nwtgck/actions-netlify tries to create a GH status which generates an error. Apparently, we didn't configure the enable-commit-status input which is true by default. We should set it to false.

Here is the error we see in the GH Actions logs

Run nwtgck/actions-netlify@v2.0
  with:
    publish-dir: ./build/site
    production-deploy: true
    github-token: ***
    deploy-message: Deploy bonita 2021.2 update
    netlify-config-path: ./netlify.toml
    github-deployment-description: Deploy bonita 2021.2 update
    enable-pull-request-comment: false
    enable-commit-comment: false
...
🚀 Deployed on https://63b833a8ae122c005723cd9c--documentation-bonita.netlify.app
RequestError [HttpError]: Resource not accessible by integration
    at /home/runner/work/_actions/nwtgck/actions-netlify/v2.0/dist/index.js:10385:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 403,
  response: {
    url: 'https://api.github.com/repos/bonitasoft/bonita-documentation-site/statuses/dffb33972d163cba8af6b216a39ef35510332e0d',
    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: 'Fri, 06 Jan 2023 14:44:06 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': '2BC2:7F1B:150FB96:2B447DA:63B833B6',
      'x-ratelimit-limit': '1000',
      'x-ratelimit-remaining': '997',
      'x-ratelimit-reset': '1673019846',
      'x-ratelimit-resource': 'core',
      'x-ratelimit-used': '3',
      'x-xss-protection': '0'
    },
    data: {
      message: 'Resource not accessible by integration',
      documentation_url: 'https://docs.github.com/rest/commits/statuses#create-a-commit-status'
    }
  },
  request: {
    method: 'POST',
    url: 'https://api.github.com/repos/bonitasoft/bonita-documentation-site/statuses/dffb33972d163cba8af6b216a39ef35510332e0d',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-core.js/3.6.0 Node.js/16.13.0 (linux; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    },
    body: '{"context":"Netlify","description":"Netlify deployment","state":"success","target_url":"https://documentation.bonitasoft.com/"}',
    request: { agent: [Agent], hook: [Function: bound bound register] }
  }
}
@tbouffard
Copy link
Member Author

Fixed by #579

Run nwtgck/actions-netlify@v2.0
🎉 Published on https://documentation.bonitasoft.com/ as production
🚀 Deployed on https://6495672049d2ee105395c641--documentation-bonita.netlify.app

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

No branches or pull requests

1 participant