Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
auto-stage
Advanced tools
Automatically run your latest code after pushing to GitHub
auto-stage
will run a web server that will listen for GitHub web hooks.
In particular, it will look for a push
to a branch of your choosing.
Once it sees a push
, it will automatically:
git pull {remote} {branch}
npm install
npm start
You will need to setup a GitHub Webhook
.
Go to your repo's Settings
-> Webhooks and services
Ensure:
Content type
is application/json
Payload URL
is correct.port
, the default port is 3000
projectPath
(see below) is a git repository and has git pull
access to the remote codeUse it as a node_module:
npm install auto-stage --save
The module exports a single function which takes two parameters:
projectPath
: a relative or absolute path to your project from your working directory
.options
: A hash which accepts three optional values:port
: The desired port of the web serverremote
: The git remote to use for use in git pull
branch
: The remote branch for use in git pull
const stage = require('auto-stage');
var options = {
port: 8080,
remote: 'origin',
branch: 'staging'
};
stage('/projects/my-app', options);
secret
as provided in the Webhooks
configurationMIT
FAQs
a lightweight github webhook auto-staging script
The npm package auto-stage receives a total of 1 weekly downloads. As such, auto-stage popularity was classified as not popular.
We found that auto-stage 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.