
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
abstract-buildspec
Advanced tools
Helps you create buildspec.yml files that inherit from each other.
Create a buildspec.js file like this:
const AbstractBuildspec = require('abstract-buildspec');
class Buildspec extends AbstractBuildspec {
static version() {
return '0.2';
}
static env() {
return {
variables: {
AAA: 'a',
},
'parameter-store': {
BBB: '/a/b',
CCC: '/c/d',
},
};
}
static phases() {
return {
install: {
commands: ['echo Installing dependencies...'],
'runtime-versions': {
nodejs: '10',
},
},
pre_build: {
commands: [
'echo Setting something up...',
],
},
build: {
commands: [
'echo Building files...',
],
},
post_build: {
commands: [
'echo Cleaning up...',
],
},
};
}
static cache() {
return {
paths: ['folder'],
};
}
static artifacts() {
return {
files: [
"'item1'",
"'item2'",
],
'base-directory': "'.'",
'discard-paths': 'no',
};
}
}
Then you can reuse it to generate a slightly different buildspec like this:
class CustomBuildspec extends Buildspec {
static phases() {
const base = super.phases();
const extraCommands = ['echo Migrating the database...'];
base.post_build.commands = extraCommands.concat(base.post_build.commands);
return base;
}
}
Finally, you can emit the buildspecs to the filesystem by doing:
Buildspec.emit('buildspec.yml');
CustomBuildspec.emit('buildspec-custom.yml');
MIT License
FAQs
Helper class to hierarchically generate buildspec.yml files.
We found that abstract-buildspec 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.