Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This Node application exposes an executable that allows you to test your GitHub workflow locally using Docker.
Install using NPM:
npm i -g gha
Other prerequisites:
.github/main.workflow
fileUsage: gha [options]
Options:
-V, --version output the version number
-f <workflowfile> Set workflow file path, defaults to .github/main.workflow
-e <event> Set event, defaults to push
-h, --help output usage information
You can set the value of secrets defined in your workflow by passing them as environment variables, e.g.:
MY_SECRET_TOKEN=yo-mamma gha
Although this way of locally running GitHub Actions is very close to how they will work when actually running them on GitHub, there are a few small differences:
GITHUB_TOKEN
is passed to all actions by default. This is not the case in the local environment, but can be achieved by creating a personal token and supplying it as a secret (see above)./github/home
volume in the container is tied to your local directory /tmp/gh-home
. In GitHub, this directory is container-specific, whereas this script shares it between all containers.There are still some things to do to achieve full functional parity.
This app currently only supports GitHub-hosted Dockerfiles (i.e. with the
{user}/{repo}@{ref}
or {user}/{repo}/{path}@{ref}
syntax), so we still need
to add:
./path/to/dir
docker://{image}:{tag}
docker://{host}/{image}:{tag}
FAQs
Test your GitHub Actions workflow locally.
We found that gha 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.