Skip to content

Update actions/github-script action to v9#10122

Merged
thebentern merged 1 commit into
masterfrom
renovate/actions-github-script-9.x
Apr 10, 2026
Merged

Update actions/github-script action to v9#10122
thebentern merged 1 commit into
masterfrom
renovate/actions-github-script-9.x

Conversation

@renovate

@renovate renovate Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
actions/github-script action major v8v9

Release Notes

actions/github-script (actions/github-script)

v9

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM (* 0-3 * * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Apr 10, 2026
@renovate renovate Bot force-pushed the renovate/actions-github-script-9.x branch from 343ebb3 to dda54fb Compare April 10, 2026 00:37
@vidplace7

Copy link
Copy Markdown
Member

Breaking changes:

  • require('@actions/github') no longer works in scripts. The upgrade to @actions/github v9 (ESM-only) means require('@actions/github') will fail at runtime. If you previously used patterns like const { getOctokit } = require('@actions/github') to create secondary clients, use the new injected getOctokit function instead — it's available directly in the script context with no imports needed.
  • getOctokit is now an injected function parameter. Scripts that declare const getOctokit = ... or let getOctokit = ... will get a SyntaxError because JavaScript does not allow const/let redeclaration of function parameters. Use the injected getOctokit directly, or use var getOctokit = ... if you need to redeclare it.
  • If your script accesses other @actions/github internals beyond the standard github/octokit client, you may need to update those references for v9 compatibility.

@copilot do these breaking changes apply to the 4 uses of actions/github-script that are being used here?

Copilot AI commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Breaking changes:

  • require('@actions/github') no longer works in scripts. The upgrade to @actions/github v9 (ESM-only) means require('@actions/github') will fail at runtime. If you previously used...

None of the breaking changes apply to the scripts in this repo. Checked all 10 uses across the 4 workflow files:

  • No script uses require('@actions/github') — the one require() call (in pr_tests.yml) is for Node's built-in fs module, which is unaffected.
  • No script redeclares getOctokit with const/let.
  • All scripts already use the injected github, context, and core objects that v9 provides — they're compatible as-is.

Copilot AI requested a review from vidplace7 April 10, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions workflows in this repository to use actions/github-script@v9 (from @v8), keeping CI/triage automation aligned with the latest major version of that action.

Changes:

  • Bumped actions/github-script from v8v9 in PR test reporting workflow.
  • Bumped actions/github-script from v8v9 in PR label enforcement workflow.
  • Bumped actions/github-script from v8v9 in model-based PR/issue triage workflows.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/pr_tests.yml Updates the PR test-result commenting step to use actions/github-script@v9.
.github/workflows/pr_enforce_labels.yml Updates the PR label-check step to use actions/github-script@v9.
.github/workflows/models_pr_triage.yml Updates label-check/apply steps to use actions/github-script@v9.
.github/workflows/models_issue_triage.yml Updates labeling/parsing/commenting steps to use actions/github-script@v9.

@thebentern thebentern merged commit 3cd3fd3 into master Apr 10, 2026
83 checks passed
@vidplace7 vidplace7 deleted the renovate/actions-github-script-9.x branch April 10, 2026 18:09
NomDeTom pushed a commit to NomDeTom/MeshtasticFirmware that referenced this pull request Apr 14, 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants