github-script is a GitHub Action that enables you to write JavaScript code in your workflow that interacts with the GitHub API and accesses workflow run context.
The action solves the problem of needing to perform GitHub API operations within a workflow without building a separate action or managing authentication manually. It works by accepting a script input containing the body of an asynchronous JavaScript function, then executing that function with pre-configured arguments: a pre-authenticated Octokit REST client, the workflow run context, and references to GitHub Actions toolkit packages for core functionality, file globbing, I/O operations, and command execution. This approach lets you write inline API calls directly in your workflow YAML without boilerplate.
You should choose this action if you need to automate GitHub API interactions as part of your workflow—such as creating issues, updating pull requests, or querying repository data—and want to avoid the overhead of creating a custom action. It suits projects that need occasional API scripting within their CI/CD pipeline. The action provides access to Octokit's REST client with pagination support built in, plus utility packages for common workflow tasks like file operations and subprocess execution.
The project is not currently accepting contributions and is allocating resources to other areas of GitHub Actions. Security updates and fixes for major breaking changes will continue to be provided. Bug reports remain welcome through the repository's issue tracker, and support requests are directed to the community discussions area.