Skip to content

Package manager versions outdated #590

Closed

Description

@MikeMcC399

Version Sync workflow fails with "Resource not accessible by integration"

Issue

The workflow Version Sync, mentioned in CONTRIBUTING.md "that keeps pinned versions up-to-date", is scheduled to run weekly, has been failing since Sep 2024.

Consequently, versions in config.json are months out of date (apart from Yarn 1 Classic where there has been no new version released):

Package Manager config version latest version
npm 10.9.1 11.0.0
pnpm 9.14.2 9.15.3
Yarn (classic) 1.22.22 1.22.22
Yarn 4.5.2 4.6.0

Logs

Jan 10, 2025 https://github.com/nodejs/corepack/actions/runs/12700915343/job/35404505886

Error: Resource not accessible by integration

Run gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
Remote branch "actions/tools-update-config.json" checked out locally.
RequestError [HttpError]: Resource not accessible by integration
    at /home/runner/work/_actions/gr2m/create-or-update-pull-request-action/77596e3166f328b24613f7082ab30bf2d93079d5/dist/index.js:9160:21
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (/home/runner/work/_actions/gr2m/create-or-update-pull-request-action/77596e3166f328b24613f7082ab30bf2d93079d5/dist/index.js:792:9) {
  status: 403,
  response: {
    url: 'https://api.github.com/repos/nodejs/corepack/pulls',
    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, 10 Jan 2025 00:32:07 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-accepted-github-permissions': 'pull_requests=write',
      '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': '68A9:3E2E99:172181E:2E21CFC:67806A87',
      'x-ratelimit-limit': '15000',
      'x-ratelimit-remaining': '14996',
      'x-ratelimit-reset': '1736472688',
      'x-ratelimit-resource': 'core',
      'x-ratelimit-used': '4',
      'x-xss-protection': '0'
    },
    data: {
      message: 'Resource not accessible by integration',
      documentation_url: 'https://docs.github.com/rest/pulls/pulls#create-a-pull-request',
      status: '403'
    }
  },
  request: {
    method: 'POST',
    url: 'https://api.github.com/repos/nodejs/corepack/pulls',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-core.js/3.5.1 Node.js/20.18.0 (linux; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    },
    body: '{"title":"feat: update package manager versions","body":"This is an automated update of package manager versions","head":"actions/tools-update-config.json","base":"main"}',
    request: { hook: [Function: bound bound register] }
  }
}
Error: Resource not accessible by integration

Activity

  1. styfle commented on Jan 12, 2025

    @styfle
    SponsorMember

    Looks like @aduh95 might have permission to fix this.

    Looks like the repo settings need to be changed per gr2m/create-or-update-pull-request-action#557 (comment)

  2. MikeMcC399 commented on Jan 12, 2025

    @MikeMcC399
    ContributorAuthor

    @styfle

    Looks like @aduh95 might have permission to fix this.

    Looks like the repo settings need to be changed per gr2m/create-or-update-pull-request-action#557 (comment)

  3. MikeMcC399 commented on Jan 13, 2025

    @MikeMcC399
    ContributorAuthor

    Possibly @arcanis or @aduh95 (or whoever is currently organizationally responsible) should check their settings for Notifications for workflow runs. If enabled, GitHub would send a failure notification. I don't really understand otherwise how the workflow could be failing for the last 4 months without any apparent attempt to fix it.

  4. aduh95 commented on Jan 13, 2025

    @aduh95
    Contributor

    Maybe it has changed since last time I tried enable it, but I find GitHub failure notification not worth the noise, so I'm not enabling that, no thank you.

    Looks like the repo settings need to be changed per gr2m/create-or-update-pull-request-action#557 (comment)

    No those are disabled at the org level: screenshot of the setting page showing the disabled setting

    The options we have are:

    It's a volunteer based project, so until someone commits their time on that issue, the latter will apply. Worth noting that the internal config file is only used when COREPACK_DEFAULT_TO_LATEST is set to 0 in the env, so being behind there won't affect most Corepack users – but we should still fix it, at least because it allows us to test Corepack with latest versions of supported package managers.

  5. MikeMcC399 commented on Jan 13, 2025

    @MikeMcC399
    Author
  6. MikeMcC399 commented on Jan 13, 2025

    @MikeMcC399
    ContributorAuthor

    @aduh95

    I am able to run the workflow in a fork by adding pull_requests: write permissions. It looks like this was all that was missing.

        permissions:
          contents: write
          pull-requests: write
  7. MikeMcC399 commented on Jan 13, 2025

    @MikeMcC399
    Author
  8. MikeMcC399 commented on Jan 13, 2025

    @MikeMcC399
    ContributorAuthor

    @aduh95

  9. MikeMcC399 commented on Jan 13, 2025

    @MikeMcC399
    ContributorAuthor
  10. MikeMcC399 commented on Jan 14, 2025

    @MikeMcC399
    ContributorAuthor

    @aduh95

    Would you like to manually trigger the workflow Version Sync now or do you prefer to wait for cron to kick in on Friday?

  11. aduh95 commented on Jan 14, 2025

    @aduh95
    Contributor

    I've ran it manually for you: https://github.com/nodejs/corepack/actions/runs/12765046315/job/35578428609

    Looks it's working great, thanks

  12. MikeMcC399 commented on Jan 14, 2025

    @MikeMcC399
    ContributorAuthor

    @aduh95

    I've ran it manually for you: https://github.com/nodejs/corepack/actions/runs/12765046315/job/35578428609

    Looks it's working great, thanks

    It's great to see that the workflow is successful.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions