
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
github-script-action
Advanced tools
An alternative to the official github-script action, with some additional features.
See action.yml.
- uses: silverlyra/script-action@v0.2
with:
# JavaScript source to run (or a script filename)
script: >
console.log("Hello, world!");
# Input data to pass into your script
input: 'null'
# If "json", `input` will be parsed as JSON.
# If "string", your script will see the literal string value of `input`.
input-encoding: 'json'
# If "json", the script's return value will be JSON-encoded.
# If "string", the script's return value will be output as a string.
result-encoding: 'json'
# Directory to change into
cwd: '.'
github-token: ${{ github.token }}
The JavaScript passed as the script
input will have the following values predefined:
input
: The input
passed to the action, via with:
env
: An object containing all environment variables (process.env
)Scripts also have access to some helper functions:
fetch
: The fetch functionreadEvent
: Read the GitHub event JSON file off of disk; return the event name
and its data
shell
: Spawn a process and (optionally) capture its outputThese packages are also available:
fs
: The Node.js fs/promises modulepath
: The Node.js path moduleartifact
: The @actions/artifact NPM packagechalk
: The chalk NPM packagecore
: The @actions/core NPM packageexec
: The @actions/exec NPM packageglob
: The @actions/glob NPM packageio
: The @actions/io NPM packageFAQs
GitHub Action for running inline JavaScript snippets
The npm package github-script-action receives a total of 1 weekly downloads. As such, github-script-action popularity was classified as not popular.
We found that github-script-action demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.