fix(.github/workflows): upgrade github-script to v9 in community-label job#24479
Merged
jdomeracki-coder merged 1 commit intomainfrom Apr 17, 2026
Merged
fix(.github/workflows): upgrade github-script to v9 in community-label job#24479jdomeracki-coder merged 1 commit intomainfrom
jdomeracki-coder merged 1 commit intomainfrom
Conversation
…l job
The community-label job fails with "Cannot find module @actions/github"
because require("@actions/github") does not work inside the bundled
actions/github-script v8 dist. v9 provides getOctokit as an injected
script parameter, removing the need for the require call.
Contributor
Author
https://github.com/actions/github-script?tab=readme-ov-file#v9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
community-labeljob in the contrib workflow fails with:require("@actions/github")does not work inside the bundledactions/github-scriptv8 dist — the package is compiled intodist/index.jsand is not resolvable by Node's module loader at runtime.actions/github-scriptv9 exposesgetOctokitas an injected script parameter, so therequirecall is no longer needed.Failing run: https://github.com/coder/coder/actions/runs/24566113706/job/71826621724