initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
30
github/codeql-action-v1/node_modules/removeNPMAbsolutePaths/bin/removeNPMAbsolutePaths
generated
vendored
Executable file
30
github/codeql-action-v1/node_modules/removeNPMAbsolutePaths/bin/removeNPMAbsolutePaths
generated
vendored
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable no-console */
|
||||
|
||||
'use strict';
|
||||
|
||||
const cli = require('../src/cli');
|
||||
const removeNPMAbsolutePaths = require('../src/removeNPMAbsolutePaths');
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
const args = await cli.parseArguments(process.argv.slice(2));
|
||||
|
||||
if (args.ignored.length) {
|
||||
console.warn(`The following options are unknown and will be ignored:\n${args.ignored.join('\n')}`);
|
||||
}
|
||||
|
||||
const results = await removeNPMAbsolutePaths(args.path, args.opts);
|
||||
|
||||
results.forEach((result) => {
|
||||
if (!result.success) {
|
||||
console.log(result.err.message);
|
||||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(err.message);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
Loading…
Add table
Add a link
Reference in a new issue