actions/GitHub Script

Run simple scripts using the GitHub client

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Apr 9, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
scriptThe script to runyes—
github-tokenThe GitHub token used to create an authenticated clientno${{ github.token }}
debugWhether to tell the GitHub client to log details of its requests. true or false. Default is to run in debug mode when the GitHub Actions step debug logging is turned on.—${{ runner.debug == '1' }}
user-agentAn optional user-agent string—actions/github-script
previewsA comma-separated list of GraphQL API previews to accept——
result-encodingEither "string" or "json" (default "json")—how the result will be encoded—json
retriesThe number of times to retry a request—0
retry-exempt-status-codesA comma separated list of status codes that will NOT be retried e.g. "400,500". No effect unless `retries` is set—400,401,403,404,422
base-urlAn optional GitHub REST API URL to connect to a different GitHub instance. For example, https://my.github-enterprise-server.com/api/v3no—
namedescription
resultThe return value of the script, stringified with `JSON.stringify`