
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
The revival of the sails run cli from the sails 0.9 branch
Command handlers are now in separate files instead of commands/index.js allowing different scopes when the app is loading
npm install -g sailsrun
// commands/mycommand.js
module.exports = function(sails, cb) {
sails.log.info('Welcome back!');
cb();
};
$ sailsrun mycommand
info: Welcome back!
$
# create ./run.js and commands/
$ sailsrun init
# copy the boilerplate to commands/mycommand.js
$ sailsrun generate command mycommand
module.exports = {
scope: function(rconf) {
// you can access command line aguments and rc configuration from rconf
return {
// define you level of logging here
log: {
noShip: true
},
// ignore application bootstrap
// or define your own
bootstrap: function(done) {
return done();
},
hooks: {
// custom hook to empty the router
noRoutes: function(sails) {
return {
initialize: function(cb) {
sails.config.routes = {};
return cb();
}
};
}
// you can disable hooks here
// e.g. grunt: false
},
// or you can disable all hooks
// and choose only the ones you need to start
loadHooks: [
'moduleloader',
'logger',
'orm',
'services',
'userconfig',
'userhooks'
]
};
},
run: function(sails, cb) {
/**
* Sample command and subcommands handler
*/
var identity = sails.config.args[0];
sails.log.info('Sails is ready, running `' + identity + '`');
var subcommands = {
/**
* define sub commands here
*/
foo: function(args, cb) {
sails.log('bar');
// use cb(err) to quit or report an error
cb();
},
initialize: function(args, cb) {
if(subcommands[args[0]]) {
return subcommands[args[0]](_.rest(args), cb);
}
cb(identity + ': missing function `' +args[0]+ '`');
}
};
if( sails.config.args.length < 1 ) {
return cb(identity + ': missing parameter');
}
subcommands.initialize(_.rest(sails.config.args), cb);
}
};
$ node ./run.js mycommand foo --prod
Sails is ready, running `mycommand`
bar
FAQs
sailsrun is the `sails run` cli revival of the sailsjs.org 0.9 branch
We found that sailsrun 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.