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

[CT-2816] [Bug] Changlog Comment fails #116

Closed
emmyoop opened this issue Jul 11, 2023 · 2 comments · Fixed by dbt-labs/dbt-core#8463 or #132
Closed

[CT-2816] [Bug] Changlog Comment fails #116

emmyoop opened this issue Jul 11, 2023 · 2 comments · Fixed by dbt-labs/dbt-core#8463 or #132
Assignees
Labels
bug Something isn't working

Comments

@emmyoop
Copy link
Member

emmyoop commented Jul 11, 2023

Documenting a failure on changelog-existence.yml. Unclear if this is transient or not.

This workflow runhttps://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069 failed on a fork.

log output:

Run peter-evans/create-or-update-comment@v3
with:
    issue-number: 8069
    body: Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md#adding-changelog-entry).
    token: ***
    repository: dbt-labs/dbt-core
    edit-mode: append
    append-separator: newline
    reactions-edit-mode: append
/home/runner/work/_actions/peter-evans/create-or-update-comment/v[3](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:3)/dist/index.js:[4](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:4)[6](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:6)[9](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:9)4
      const error = new requestError.RequestError(toErrorMessage(data), status, {
                    ^
/home/runner/work/_actions/peter-evans/create-or-update-comment/v3/dist/index.js:4694
      const error = new requestError.RequestError(toErrorMessage(data), status, {
                    ^

RequestError [HttpError]: Resource not accessible by integration
    at /home/runner/work/_actions/peter-evans/create-or-update-comment/v3/dist/index.js:4694:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: 403,
  response: {
    url: 'https://api.github.com/repos/dbt-labs/dbt-core/issues/8069/comments',
    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, 11 Jul 2023 18:22:53 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': '501E:76BD:B2304:168F0C:64AD9DFD',
      'x-ratelimit-limit': '15000',
      'x-ratelimit-remaining': '14978',
      'x-ratelimit-reset': '1689[10](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:11)3231',
      'x-ratelimit-resource': 'core',
      'x-ratelimit-used': '22',
      'x-xss-protection': '0'
    },
    data: {
      message: 'Resource not accessible by integration',
      documentation_url: 'https://docs.github.com/rest/reference/issues#create-an-issue-comment'
    }
  },
  request: {
    method: 'POST',
    url: 'https://api.github.com/repos/dbt-labs/dbt-core/issues/8069/comments',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-core.js/3.6.0 Node.js/[16](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:17).16.0 (linux; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    },
    body: '{"body":"Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md#adding-changelog-entry)."}',
    request: {
      agent: Agent {
        _events: [Object: null prototype] {
          free: [Function (anonymous)],
          newListener: [Function: maybeEnableKeylog]
        },
        _eventsCount: 2,
        _maxListeners: undefined,
        defaultPort: 443,
        protocol: 'https:',
        options: [Object: null prototype] { path: null },
        requests: [Object: null prototype] {},
        sockets: [Object: null prototype] {},
        freeSockets: [Object: null prototype] {},
        keepAliveMsecs: 1000,
        keepAlive: false,
        maxSockets: Infinity,
        maxFreeSockets: [25](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:26)6,
        scheduling: 'lifo',
        maxTotalSockets: Infinity,
        totalSocketCount: 0,
        maxCachedSessions: 100,
        _sessionCache: {
          map: {
            'api.github.com:4[43](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:44):::::::::::::::::::::': [Buffer [Uint8Array]]
          },
          list: [ 'api.github.com:[44](https://github.com/dbt-labs/dbt-core/actions/runs/5523528705/jobs/10074580966?pr=8069#step:6:45)3:::::::::::::::::::::' ]
        },
        [Symbol(kCapture)]: false
      },
      hook: [Function: bound bound register]
    }
  }
}
@emmyoop emmyoop added the bug Something isn't working label Jul 11, 2023
@github-actions github-actions bot changed the title [Bug] Changlog Comment fails [CT-2816] [Bug] Changlog Comment fails Jul 11, 2023
@dbeatty10
Copy link
Contributor

@emmyoop
Copy link
Member Author

emmyoop commented Aug 7, 2023

This affects PRs from forks exclusively. Internal PRs still work without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants