Title: Upgrade @actions/github to v9 and @octokit/core to v7+ · Issue #707 · actions/github-script · GitHub
Open Graph Title: Upgrade @actions/github to v9 and @octokit/core to v7+ · Issue #707 · actions/github-script
X Title: Upgrade @actions/github to v9 and @octokit/core to v7+ · Issue #707 · actions/github-script
Description: Summary Upgrade the @actions/github dependency from v6.0.0 to v9.0.0 and @octokit/core from v5.0.1 to v7.0.6 (latest). Current State Package Current Version Latest Version @actions/github ^6.0.0 (resolved: 6.0.0) 9.0.0 @octokit/core ^5.0...
Open Graph Description: Summary Upgrade the @actions/github dependency from v6.0.0 to v9.0.0 and @octokit/core from v5.0.1 to v7.0.6 (latest). Current State Package Current Version Latest Version @actions/github ^6.0.0 (r...
X Description: Summary Upgrade the @actions/github dependency from v6.0.0 to v9.0.0 and @octokit/core from v5.0.1 to v7.0.6 (latest). Current State Package Current Version Latest Version @actions/github ^6.0.0 (r...
Opengraph URL: https://github.com/actions/github-script/issues/707
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Upgrade @actions/github to v9 and @octokit/core to v7+","articleBody":"## Summary\n\nUpgrade the `@actions/github` dependency from **v6.0.0** to **v9.0.0** and `@octokit/core` from **v5.0.1** to **v7.0.6** (latest).\n\n## Current State\n\n| Package | Current Version | Latest Version |\n|---------|----------------|----------------|\n| `@actions/github` | `^6.0.0` (resolved: 6.0.0) | **9.0.0** |\n| `@octokit/core` | `^5.0.1` (resolved: 5.0.1) | **7.0.6** |\n\n## Motivation\n\n- The current dependencies are several major versions behind.\n- `@actions/github` v9 ships with the latest Octokit APIs, newer GitHub REST/GraphQL endpoint support, and security patches.\n- `@octokit/core` v7+ includes performance improvements and bug fixes.\n- Keeping up with upstream major releases ensures compatibility with the latest GitHub platform features and avoids accumulating migration debt.\n\n## Breaking Changes to Address\n\n`@actions/github` v9 is **ESM-only**, which is the main breaking change. Key migration considerations:\n\n1. **ESM-only module**: `require()` calls must be replaced with `import` statements. Since this repo already uses TypeScript with ESM-style imports, this may be partially mitigated, but bundler configuration (esbuild) should be verified.\n2. **Internal import paths**: Imports from `@actions/github/lib/utils` and `@actions/github/lib/context` may need updating if subpath exports have changed in v9.\n3. **Plugin composition**: The Octokit plugin model (`@octokit/plugin-retry`, `@octokit/plugin-request-log`) should be tested for compatibility with the new core version.\n4. **TypeScript types**: `OctokitOptions` from `@octokit/core/dist-types/types` and other type imports may have changed paths or shapes.\n5. **Node.js version**: The repo already requires Node.js \u003e= 24, so runtime compatibility should not be an issue.\n\n## Affected Source Files\n\nThe following files import from `@actions/github` or `@octokit/*` and would need review:\n\n- `src/main.ts` — imports `context`, `getOctokit`, and `defaults` from `@actions/github`\n- `src/async-function.ts` — imports `Context` and `GitHub` types from `@actions/github`\n- `src/retry-options.ts` — imports `OctokitOptions` from `@octokit/core`\n\n## Suggested Approach\n\n1. Update `package.json` dependencies to `@actions/github@^9.0.0` and `@octokit/core@^7.0.0`\n2. Run `npm install` and resolve any peer dependency conflicts\n3. Update import paths if subpath exports changed in v9\n4. Verify TypeScript compilation passes\n5. Verify esbuild bundling still works correctly with ESM input\n6. Run the existing test suite and fix any failures\n7. Test end-to-end in a workflow to confirm runtime behavior","author":{"url":"https://github.com/angel-jiakou","@type":"Person","name":"angel-jiakou"},"datePublished":"2026-03-23T20:16:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/707/github-script/issues/707"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3e505b4f-39e2-3f6e-e5c9-683761bdf874 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A02A:1F99C3:C7B4018:CD819D4:6A4C571F |
| html-safe-nonce | fa5a9fdd60539cdcf84a66e57039cfad69160bbd0f64381b45f2502822115611 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDJBOjFGOTlDMzpDN0I0MDE4OkNEODE5RDQ6NkE0QzU3MUYiLCJ2aXNpdG9yX2lkIjoiODY2MDYwMDYxNDEyMjQ0NDU3NSIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | eec8f0f4b03896f10c1694ff84bae9f0461756339495a306b97f92c284f31040 |
| hovercard-subject-tag | issue:4123458575 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/github-script/707/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9631117a514ca8864cc5ea028ab8ab618a5277377cd9cd35c029aaee415a2754/actions/github-script/issues/707 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9631117a514ca8864cc5ea028ab8ab618a5277377cd9cd35c029aaee415a2754/actions/github-script/issues/707 |
| og:image:alt | Summary Upgrade the @actions/github dependency from v6.0.0 to v9.0.0 and @octokit/core from v5.0.1 to v7.0.6 (latest). Current State Package Current Version Latest Version @actions/github ^6.0.0 (r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | angel-jiakou |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/github-script git https://github.com/actions/github-script.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 205262760 |
| octolytics-dimension-repository_nwo | actions/github-script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205262760 |
| octolytics-dimension-repository_network_root_nwo | actions/github-script |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width