Skip to content

Update actions/github-script action to v9 - #989

Open
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/actions-github-script-9.x
Open

Update actions/github-script action to v9#989
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/actions-github-script-9.x

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

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

v9.0.0

Compare Source

New features:

  • getOctokit factory function — Available directly in the script context. Create additional authenticated Octokit clients with different tokens for multi-token workflows, GitHub App tokens, and cross-org access. See Creating additional clients with getOctokit for details and examples.
  • Orchestration ID in user-agent — The ACTIONS_ORCHESTRATION_ID environment variable is automatically appended to the user-agent string for request tracing.

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.
What's Changed
New Contributors

Full Changelog: actions/github-script@v8.0.0...v9.0.0

v9

Compare Source

v8.0.0

Compare Source

v8: .0.0

Compare Source

What's Changed
⚠️ Minimum Compatible Runner Version

v2.327.1
Release Notes

Make sure your runner is updated to this version or newer to use this release.

New Contributors

Full Changelog: actions/github-script@v7.1.0...v8.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

Rebasing: Whenever PR becomes conflicted, 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

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

@github-actions github-actions Bot added the semver/major Semver major version bump label Jul 28, 2026
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

AI Dependency Impact Analysis

Previous analysis
Previous analysis
Previous analysis
Previous analysis
Previous analysis

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action was updated from v7 to v9 (with v8 included in the transition). This update transitions the underlying runner to Node.js 24, requiring GitHub Runner version v2.327.1 or newer. Additionally, @actions/github was upgraded to v9 (ESM-only), and a new pre-injected getOctokit helper has been added directly to the script context.

Affected Code

No specific workflow snippets were provided in the prompt context. However, this change directly affects any GitHub Actions workflow files (located in .github/workflows/) that utilize the actions/github-script action.

Breaking Change Assessment

Several major breaking changes are introduced that may affect workflows:

  • ESM-only @actions/github: Any script block containing require('@actions/github') will now fail at runtime. Workflows must be updated to use the injected context variables.
  • getOctokit Parameter Injection: Scripts that declare const getOctokit = ... or let getOctokit = ... will fail with a SyntaxError because getOctokit is now an injected function parameter and cannot be redeclared.
  • Runner Version Requirement: This update requires GitHub Runner version v2.327.1 or newer to support the updated Node.js execution environment. If self-hosted runners are used and are not up to date, workflows will fail.

Security Assessment

No security advisories or vulnerability findings were provided in the PR context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. Reviewers should inspect all workflow files within .github/workflows/ utilizing actions/github-script to ensure they do not attempt to import @actions/github via require() or re-declare getOctokit, and verify that self-hosted runners (if applicable) meet the minimum version requirement (v2.327.1).

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is updated from v7 to v9 (spanning two major releases, v8 and v9). Key changes include upgrading the underlying @actions/github to v9 (ESM-only), adding an injected getOctokit helper directly into the script context, updating Node.js support, and bumping the minimum compatible GitHub Actions runner version to v2.327.1.

Affected Code

No Go source code files are directly affected as this is a GitHub Actions dependency update. The affected files are the GitHub Actions workflow YAML files (typically located in .github/workflows/) that reference actions/github-script.

Breaking Change Assessment

Multiple breaking changes are introduced that may impact existing workflows:

  1. ESM-only @actions/github: Any script in our workflows using require('@actions/github') will now fail at runtime. Workflows must be updated to use the newly injected getOctokit helper instead of importing it manually.
  2. getOctokit Syntax Error: If a script declares const getOctokit = ... or let getOctokit = ..., it will throw a SyntaxError due to duplicate parameter declaration in the execution context.
  3. Runner Version Requirement: If the repository uses self-hosted runners, they must be upgraded to at least version v2.327.1 to be compatible with v8.0.0 and above.

Security Assessment

No security advisories or vulnerability findings were provided in the update context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. A reviewer should inspect the .github/workflows/ directory to identify all steps utilizing actions/github-script and ensure:

  • They do not contain require('@actions/github').
  • They do not redeclare getOctokit using const or let.
  • Any self-hosted runner environments meet the minimum runner version of v2.327.1.

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script GitHub Action is updated from v7 to v9 (spanning major releases v8 and v9). This update bumps Node.js support to version 24.x, introduces an injected getOctokit factory function directly into the script context, and upgrades underlying dependencies like @actions/github to v9 which is now ESM-only.

Affected Code

No Go package dependencies are directly affected. This change impacts GitHub Action workflows located in .github/workflows/ that reference actions/github-script.

Breaking Change Assessment

Breaking changes in v9 will impact workflows if they:

  1. Use require('@actions/github') in their scripts, which will now fail at runtime because the underlying @actions/github is ESM-only.
  2. Explicitly declare const getOctokit = ... or let getOctokit = ... within the script block, which will now throw a SyntaxError because getOctokit is now a pre-declared injected parameter.
  3. Run on older self-hosted runner environments (requires Runner version v2.327.1 or newer).

Security Assessment

No security advisories or vulnerability findings were provided in the context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. The reviewer should check the .github/workflows/ directory for any YAML files utilizing actions/github-script and verify that the scripts do not use require('@actions/github') or redeclare the getOctokit variable.

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is updated from v7 to v9 (incorporating v8 changes). Key updates include upgrading the runtime to support Node.js 24, requiring GitHub runner version v2.327.1 or newer, and upgrading internal dependencies to ESM-only versions which changes script execution behavior.

Affected Code

This change affects GitHub Action workflows (typically located under .github/workflows/) that utilize actions/github-script. Any workflow step running inline or external JavaScript via this action must be reviewed; no Go source code is directly impacted by this update.

Breaking Change Assessment

The following breaking changes are introduced in this major release:

  • require('@actions/github') is no longer supported and will fail at runtime. Scripts must use the newly injected getOctokit context or standard parameters instead.
  • Declaring const getOctokit or let getOctokit in scripts will result in a SyntaxError because getOctokit is now an injected function parameter.
  • The action requires a minimum runner version of v2.327.1. If self-hosted runners are used, they must be verified for compatibility.

Security Assessment

No security advisories or vulnerability findings were provided for this update.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk, reviewer should check all workflow files under .github/workflows/ that reference actions/github-script to ensure they do not use require('@actions/github'), do not redeclare getOctokit, and that runners meet the minimum version requirement.

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is updated from v7 to v9 (spanning major versions v8 and v9). Key changes include upgrading the runtime to Node.js 24 (requiring runner version v2.327.1 or newer), injecting a new getOctokit factory function directly into the script context, and upgrading internal dependencies to @actions/github v9 (ESM-only), which breaks traditional require imports.

Affected Code

This is a GitHub Action update rather than a Go package dependency. It affects YAML workflow definitions within the .github/workflows/ directory that utilize the actions/github-script step. There are no direct Go imports for this dependency.

Breaking Change Assessment

Several breaking changes in v8 and v9 could impact existing workflows:

  1. require('@actions/github') is no longer supported: If your scripts import the GitHub client using require('@actions/github'), they will fail at runtime. You must use the newly injected getOctokit function instead.
  2. getOctokit Syntax Errors: If your scripts manually define a variable named getOctokit using const or let (e.g., const getOctokit = ...), it will throw a SyntaxError due to redeclaration of an injected parameter.
  3. Runner Version Requirement: Self-hosted runners must be at version v2.327.1 or newer to support the updated Node.js 24 execution environment.

Security Assessment

No security advisories were reported for this release.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. Reviewers must inspect all .github/workflows/ files using actions/github-script to ensure they do not perform require('@actions/github') or redeclare getOctokit. If self-hosted runners are used, verify they meet the minimum version requirement (v2.327.1).

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is being updated across two major versions, from v7 to v9. Key changes include an updated minimum runner version of v2.327.1 (introduced in v8), Node.js support bump, and a major breaking change in v9.0.0 where @actions/github was upgraded to an ESM-only package, causing require('@actions/github') to fail in scripts.

Affected Code

GitHub Actions workflow files (located in .github/workflows/) that utilize the actions/github-script action are affected. Any inline JavaScript code within these workflows that interacts with the GitHub API or helper libraries must be checked.

Breaking Change Assessment

Several breaking changes are highly likely to affect existing workflows:

  1. ESM-only @actions/github: If workflows currently use require('@actions/github') to instantiate secondary Octokit clients, this will now fail at runtime. Users must use the newly injected getOctokit factory function instead.
  2. getOctokit Scope Conflict: Scripts that declare const getOctokit = ... or let getOctokit = ... will throw a SyntaxError because getOctokit is now injected as a parameter in the script context and cannot be redeclared.
  3. Runner Compatibility: If the repository runs on self-hosted runners, they must be updated to at least version v2.327.1.

Security Assessment

No security advisories or vulnerabilities were reported in the context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. A reviewer must inspect all .github/workflows/ files using actions/github-script to verify that they do not use require('@actions/github') or redeclare getOctokit. If self-hosted runners are used, verify their version is at or above v2.327.1.

@github-actions github-actions Bot added the risk/medium AI-assessed medium risk dependency update label Jul 28, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action was updated from v7 to v9 (with v8 included in the transition). This update transitions the underlying runner to Node.js 24, requiring GitHub Runner version v2.327.1 or newer. Additionally, @actions/github was upgraded to v9 (ESM-only), and a new pre-injected getOctokit helper has been added directly to the script context.

Affected Code

No specific workflow snippets were provided in the prompt context. However, this change directly affects any GitHub Actions workflow files (located in .github/workflows/) that utilize the actions/github-script action.

Breaking Change Assessment

Several major breaking changes are introduced that may affect workflows:

  • ESM-only @actions/github: Any script block containing require('@actions/github') will now fail at runtime. Workflows must be updated to use the injected context variables.
  • getOctokit Parameter Injection: Scripts that declare const getOctokit = ... or let getOctokit = ... will fail with a SyntaxError because getOctokit is now an injected function parameter and cannot be redeclared.
  • Runner Version Requirement: This update requires GitHub Runner version v2.327.1 or newer to support the updated Node.js execution environment. If self-hosted runners are used and are not up to date, workflows will fail.

Security Assessment

No security advisories or vulnerability findings were provided in the PR context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. Reviewers should inspect all workflow files within .github/workflows/ utilizing actions/github-script to ensure they do not attempt to import @actions/github via require() or re-declare getOctokit, and verify that self-hosted runners (if applicable) meet the minimum version requirement (v2.327.1).

@fullsend-ai-review

fullsend-ai-review Bot commented Jul 28, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:30 PM UTC · Completed 7:42 PM UTC
Commit: 37b10e4 · View workflow run →

@fullsend-ai-review

fullsend-ai-review Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review

Findings

High

  • [protected-path] .github/workflows/agent-files-detect.yaml, .github/workflows/agent-files-enforce.yaml — PR modifies files under the protected .github/ path prefix. No linked issue provides formal authorization for modifying governance or infrastructure files. Human approval is always required for protected-path changes.
    Remediation: A human reviewer with write access should verify the workflow changes are intentional and appropriate, then approve.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

Review

Findings

High

  • [protected-path] .github/workflows/agent-files-detect.yaml, .github/workflows/agent-files-enforce.yaml — Both files are under the .github/ protected path. This PR has no linked issue providing justification for modifying governance/infrastructure workflow files. The change itself is a mechanical dependency pin update (actions/github-script v7 → v9) with no permission scope, trigger, secret, or script logic modifications. All inline scripts use standard Octokit REST API patterns (github.rest.*, core.*, context.*) that are compatible with v9 — none use the breaking patterns (require('@actions/github') or const getOctokit). The SHA pin 3a2844b7e9c422d3c10d287c895573f7108da1b3 has been verified. Human approval is required for all changes to protected paths.
    Remediation: A reviewer with write access should verify the dependency update and remove the agent-config-review-required label before merging.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (2)

Review

Findings

High

  • [protected-path] .github/workflows/agent-files-enforce.yaml — This PR modifies a file under .github/, which is a protected path requiring human approval. No linked issue provides authorization for this change. The change itself is a mechanical dependency version bump (actions/github-script v7 → v9) generated by Renovate/MintMaker, and all six inline scripts are verified compatible with the v9 API surface (no require('@actions/github') calls, no getOctokit redeclarations, no other v9 breaking patterns). Human review is required for all protected-path changes.
    Remediation: A reviewer with write access should verify the version bump is intentional and approve the protected-path change.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (3)

Review

Findings

High

  • [protected-path] .github/workflows/agent-files-enforce.yaml — This PR modifies a file under the .github/ protected path. The PR has no linked issue justifying the change to governance/infrastructure files. Human approval from the infrastructure team is required for all protected-path changes, regardless of whether the change is mechanical. The agent-config-review-required label is already correctly applied.
    Remediation: An infrastructure team member must review and approve this change before merge.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (4)

Review

Findings

High

  • [protected-path] .github/workflows/agent-files-check.yaml — This PR modifies a file under .github/, which is a protected path requiring human approval. The PR has no linked issue providing explicit authorization for modifying governance/infrastructure files. The change itself (updating actions/github-script from v7 to v9) is a safe dependency version bump — all three inline scripts use only the standard injected github, context, and core globals that remain fully compatible with v9 (none use require('@actions/github') or declare getOctokit, the two breaking patterns in v9). Human approval is still required for all protected-path changes regardless of change safety.
    Remediation: An infra-team reviewer must verify and approve the protected-path change.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (5)

Review

No findings above threshold. Automated dependency update (Renovate/MintMaker) bumping actions/github-script from v7 to v9 across three uses: references in .github/workflows/agent-files-check.yaml.

The workflow scripts are compatible with v9 — none use require('@actions/github') or declare const/let getOctokit (the two v9 breaking changes). All scripts use the standard injected globals (github, context, core). The commit SHA 3a2844b7e9c422d3c10d287c895573f7108da1b3 was verified against the actions/github-script repository. Permissions are unchanged (contents: read, issues: write).

.github/ is a protected path — human approval is required for changes under this path regardless of automation source.


Labels: PR modifies GitHub Actions workflow file and is an automated dependency update

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment github_actions Pull requests that update GitHub Actions code dependencies Pull requests that update a dependency file labels Jul 28, 2026
@codecov-commenter

codecov-commenter commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.74%. Comparing base (8c12c4b) to head (e1130f2).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #989      +/-   ##
==========================================
- Coverage   76.92%   76.74%   -0.18%     
==========================================
  Files          26       26              
  Lines        2817     2817              
==========================================
- Hits         2167     2162       -5     
- Misses        452      456       +4     
- Partials      198      199       +1     
Flag Coverage Δ
e2e-tests 30.03% <ø> (-0.25%) ⬇️
unit-tests 73.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c12c4b...e1130f2. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/actions-github-script-9.x branch from 4043e8c to 7e68aad Compare August 3, 2026 16:33
@github-actions github-actions Bot added risk/medium AI-assessed medium risk dependency update and removed risk/medium AI-assessed medium risk dependency update labels Aug 3, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is updated from v7 to v9 (spanning two major releases, v8 and v9). Key changes include upgrading the underlying @actions/github to v9 (ESM-only), adding an injected getOctokit helper directly into the script context, updating Node.js support, and bumping the minimum compatible GitHub Actions runner version to v2.327.1.

Affected Code

No Go source code files are directly affected as this is a GitHub Actions dependency update. The affected files are the GitHub Actions workflow YAML files (typically located in .github/workflows/) that reference actions/github-script.

Breaking Change Assessment

Multiple breaking changes are introduced that may impact existing workflows:

  1. ESM-only @actions/github: Any script in our workflows using require('@actions/github') will now fail at runtime. Workflows must be updated to use the newly injected getOctokit helper instead of importing it manually.
  2. getOctokit Syntax Error: If a script declares const getOctokit = ... or let getOctokit = ..., it will throw a SyntaxError due to duplicate parameter declaration in the execution context.
  3. Runner Version Requirement: If the repository uses self-hosted runners, they must be upgraded to at least version v2.327.1 to be compatible with v8.0.0 and above.

Security Assessment

No security advisories or vulnerability findings were provided in the update context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. A reviewer should inspect the .github/workflows/ directory to identify all steps utilizing actions/github-script and ensure:

  • They do not contain require('@actions/github').
  • They do not redeclare getOctokit using const or let.
  • Any self-hosted runner environments meet the minimum runner version of v2.327.1.

@fullsend-ai-review

fullsend-ai-review Bot commented Aug 3, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 4:34 PM UTC · Completed 4:43 PM UTC
Commit: 701e62a · View workflow run →

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot removed the requires-manual-review Review requires human judgment label Aug 3, 2026
@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/actions-github-script-9.x branch from 7e68aad to befe2e8 Compare August 4, 2026 19:49
@github-actions github-actions Bot added risk/medium AI-assessed medium risk dependency update and removed risk/medium AI-assessed medium risk dependency update labels Aug 4, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script GitHub Action is updated from v7 to v9 (spanning major releases v8 and v9). This update bumps Node.js support to version 24.x, introduces an injected getOctokit factory function directly into the script context, and upgrades underlying dependencies like @actions/github to v9 which is now ESM-only.

Affected Code

No Go package dependencies are directly affected. This change impacts GitHub Action workflows located in .github/workflows/ that reference actions/github-script.

Breaking Change Assessment

Breaking changes in v9 will impact workflows if they:

  1. Use require('@actions/github') in their scripts, which will now fail at runtime because the underlying @actions/github is ESM-only.
  2. Explicitly declare const getOctokit = ... or let getOctokit = ... within the script block, which will now throw a SyntaxError because getOctokit is now a pre-declared injected parameter.
  3. Run on older self-hosted runner environments (requires Runner version v2.327.1 or newer).

Security Assessment

No security advisories or vulnerability findings were provided in the context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. The reviewer should check the .github/workflows/ directory for any YAML files utilizing actions/github-script and verify that the scripts do not use require('@actions/github') or redeclare the getOctokit variable.

@fullsend-ai-review

fullsend-ai-review Bot commented Aug 4, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:50 PM UTC · Completed 7:59 PM UTC
Commit: 701e62a · View workflow run →

fullsend-ai-review[bot]

This comment was marked as outdated.

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/actions-github-script-9.x branch from befe2e8 to 0f33d1b Compare August 7, 2026 17:53
@red-hat-konflux red-hat-konflux Bot changed the title chore(deps): update actions/github-script action to v9 Update actions/github-script action to v9 Aug 7, 2026
@github-actions github-actions Bot added risk/medium AI-assessed medium risk dependency update and removed risk/medium AI-assessed medium risk dependency update labels Aug 7, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is updated from v7 to v9 (incorporating v8 changes). Key updates include upgrading the runtime to support Node.js 24, requiring GitHub runner version v2.327.1 or newer, and upgrading internal dependencies to ESM-only versions which changes script execution behavior.

Affected Code

This change affects GitHub Action workflows (typically located under .github/workflows/) that utilize actions/github-script. Any workflow step running inline or external JavaScript via this action must be reviewed; no Go source code is directly impacted by this update.

Breaking Change Assessment

The following breaking changes are introduced in this major release:

  • require('@actions/github') is no longer supported and will fail at runtime. Scripts must use the newly injected getOctokit context or standard parameters instead.
  • Declaring const getOctokit or let getOctokit in scripts will result in a SyntaxError because getOctokit is now an injected function parameter.
  • The action requires a minimum runner version of v2.327.1. If self-hosted runners are used, they must be verified for compatibility.

Security Assessment

No security advisories or vulnerability findings were provided for this update.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk, reviewer should check all workflow files under .github/workflows/ that reference actions/github-script to ensure they do not use require('@actions/github'), do not redeclare getOctokit, and that runners meet the minimum version requirement.

@fullsend-ai-review

fullsend-ai-review Bot commented Aug 7, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 5:55 PM UTC · Completed 6:04 PM UTC

Commit: 701e62a · View workflow run →

fullsend-ai-review[bot]

This comment was marked as outdated.

@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/actions-github-script-9.x branch from 0f33d1b to 7b3a9de Compare August 13, 2026 01:09
@github-actions github-actions Bot added risk/medium AI-assessed medium risk dependency update and removed risk/medium AI-assessed medium risk dependency update labels Aug 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is updated from v7 to v9 (spanning major versions v8 and v9). Key changes include upgrading the runtime to Node.js 24 (requiring runner version v2.327.1 or newer), injecting a new getOctokit factory function directly into the script context, and upgrading internal dependencies to @actions/github v9 (ESM-only), which breaks traditional require imports.

Affected Code

This is a GitHub Action update rather than a Go package dependency. It affects YAML workflow definitions within the .github/workflows/ directory that utilize the actions/github-script step. There are no direct Go imports for this dependency.

Breaking Change Assessment

Several breaking changes in v8 and v9 could impact existing workflows:

  1. require('@actions/github') is no longer supported: If your scripts import the GitHub client using require('@actions/github'), they will fail at runtime. You must use the newly injected getOctokit function instead.
  2. getOctokit Syntax Errors: If your scripts manually define a variable named getOctokit using const or let (e.g., const getOctokit = ...), it will throw a SyntaxError due to redeclaration of an injected parameter.
  3. Runner Version Requirement: Self-hosted runners must be at version v2.327.1 or newer to support the updated Node.js 24 execution environment.

Security Assessment

No security advisories were reported for this release.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. Reviewers must inspect all .github/workflows/ files using actions/github-script to ensure they do not perform require('@actions/github') or redeclare getOctokit. If self-hosted runners are used, verify they meet the minimum version requirement (v2.327.1).

@fullsend-ai-review

fullsend-ai-review Bot commented Aug 13, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:10 AM UTC · Completed 1:22 AM UTC

Commit: 1e64447 · View workflow run →

fullsend-ai-review[bot]

This comment was marked as outdated.

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux
red-hat-konflux Bot force-pushed the konflux/mintmaker/main/actions-github-script-9.x branch from 7b3a9de to e1130f2 Compare August 24, 2026 06:20
@github-actions github-actions Bot added risk/medium AI-assessed medium risk dependency update and removed risk/medium AI-assessed medium risk dependency update labels Aug 24, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Level: MEDIUM

Summary of Dependency Changes

The actions/github-script action is being updated across two major versions, from v7 to v9. Key changes include an updated minimum runner version of v2.327.1 (introduced in v8), Node.js support bump, and a major breaking change in v9.0.0 where @actions/github was upgraded to an ESM-only package, causing require('@actions/github') to fail in scripts.

Affected Code

GitHub Actions workflow files (located in .github/workflows/) that utilize the actions/github-script action are affected. Any inline JavaScript code within these workflows that interacts with the GitHub API or helper libraries must be checked.

Breaking Change Assessment

Several breaking changes are highly likely to affect existing workflows:

  1. ESM-only @actions/github: If workflows currently use require('@actions/github') to instantiate secondary Octokit clients, this will now fail at runtime. Users must use the newly injected getOctokit factory function instead.
  2. getOctokit Scope Conflict: Scripts that declare const getOctokit = ... or let getOctokit = ... will throw a SyntaxError because getOctokit is now injected as a parameter in the script context and cannot be redeclared.
  3. Runner Compatibility: If the repository runs on self-hosted runners, they must be updated to at least version v2.327.1.

Security Assessment

No security advisories or vulnerabilities were reported in the context.

Supply-Chain Assessment

No supply-chain concerns detected.

Recommended Action

Review specific areas: Medium risk. A reviewer must inspect all .github/workflows/ files using actions/github-script to verify that they do not use require('@actions/github') or redeclare getOctokit. If self-hosted runners are used, verify their version is at or above v2.327.1.

@fullsend-ai-review

fullsend-ai-review Bot commented Aug 24, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:21 AM UTC · Completed 6:33 AM UTC

Commit: 9ee3c25 · View workflow run →

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

See the review comment for full details.

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

Labels

agent-config-review-required dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code risk/medium AI-assessed medium risk dependency update semver/major Semver major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant