
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
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 5 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
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.