actions/github-script

Write workflows scripting the GitHub API in JavaScript

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 18 seconds ago
Added to GitGenius on September 13th, 2026
Created on August 29th, 2019
Open Issues & Pull Requests: 94 (+0)
GitHub issues: Enabled
Number of forks: 586
Total Stargazers: 5,025 (+0)
Total Subscribers: 43 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 9.3 days
Mean response time: 60.9 days
90th percentile: 122.8 days
Tracked items: 61

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 54% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 40
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 606 days
Stale 30+ days: 40
Stale 90+ days: 29

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • question (9)
  • enhancement (6)
  • bug (5)
  • dependencies (4)
  • invalid (4)
  • documentation (1)
  • good first issue (1)
  • help wanted (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

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.