qmetrics.net

Github Script

JavaScript scripting step for GitHub Actions workflows

github-script is a GitHub Action that runs an asynchronous JavaScript function body in a workflow with a pre-authenticated Octokit client and workflow context.

Overview

Workflow authors supply a script input containing the body of an async JavaScript function. At runtime the action injects github as an Octokit REST client with pagination, context with workflow run metadata, getOctokit to mint additional authenticated clients, and a wrapped require that resolves npm packages and relative files from the working directory.

Scripts can call GitHub REST, GraphQL, and request APIs, read step outputs, pass data through environment variables instead of inline expressions to reduce injection risk, and return JSON or string results exposed as step outputs via result-encoding. Retries on failed REST calls are configurable, with defaults skipping typical client-error status codes.

Version 9 upgrades to current Octokit typings, injects getOctokit for multi-token workflows, and runs on Node 24 with a minimum runner version requirement documented in the release notes. Older patterns that required @actions/github inside the script should migrate to the injected client and getOctokit helper.

Examples in the documentation cover commenting on issues, labeling, welcoming contributors, downloading URLs, running separate repository JavaScript modules after checkout, using ESM with type module in package.json, and executing shell commands through @actions/exec.

Key features

  • Pre-authenticated Octokit github client
  • Workflow context object
  • getOctokit extra token clients
  • Wrapped require for npm modules
  • JSON or string result outputs
  • Configurable REST retries
  • GraphQL query support
  • External script file workflows

Use cases

  • Automate issue comments in CI
  • Apply labels from workflow events
  • Custom API calls mid-pipeline
  • Cross-repository token operations
  • Reuse shared workflow JavaScript

Tags

Similar software

husky

Lightweight native Git hooks for Node projects

A small npm package that wires Git hooks via core.hooksPath to run checks on commit and push, including lint, tests, and message rules.

  • Uses Git core.hooksPath
  • All client-side Git hooks supported
  • macOS, Linux, and Windows support
JavaScriptLinux, macOS, WindowsDetails →
★ 35.4k⟳ 8 months agoMIT

gulp.js

Streaming JavaScript toolkit for development workflow automation

Gulp automates repetitive development tasks by chaining streaming file transformations. It offers a small API, thousands of plugins, and runs with Node.js and other platforms used in major IDEs.

  • Streaming in-memory file pipelines
  • Minimal task-oriented JavaScript API
  • Large curated plugin ecosystem
JavaScriptCLIDetails →
★ 32.9k⟳ 9 months agoMIT

electron-builder

Packaging and distribution tool for Electron applications

electron-builder produces macOS, Windows, and Linux installers and archives from Electron projects, with built-in auto-update hooks and publishing helpers.

  • Multi-platform installers
  • electron-updater integration
  • GitHub and S3 publishing
TypeScriptLinux, macOS, Windows, DockerDetails →
★ 14.7k⟳ todayMIT

browserify

Node-style CommonJS bundler for browser JavaScript

Browserify walks require() calls in your JavaScript and packs dependencies into one browser file. It supports npm modules, shims for Node core libs, and a CLI plus programmatic API.

  • Recursive require() dependency graph
  • npm module resolution in bundles
  • Node core library shims
JavaScriptCLIDetails →
★ 14.7k⟳ 1 month agoMIT

Jib

Daemonless container image builder for Java applications

Jib builds optimized Docker and OCI images for Java apps without a Docker daemon. It ships as Maven and Gradle plugins, a core library, and a CLI.

  • Maven and Gradle plugins
  • Layered dependency and class splits
  • No Docker daemon required
JavaCLIDetails →
★ 14.5k⟳ todayApache-2.0

Rolldown

Rust JavaScript bundler with Rollup-compatible API

Bundles JavaScript and TypeScript using a Rust core, exposes Rollup-like APIs and plugins, and targets eventual use as Vite's bundler.

  • Rollup-compatible API surface
  • Rollup-style plugin interface
  • Rust implementation core
RustDetails →
★ 14.2k⟳ todayMIT