Skip to content

Commit 34ce270

Browse files
authored
chore: add command to manage runtime configuration (#104)
* chore: kickstart nsecure config implementation * chore: open .nodesecurerc inside vscode * revert package lock to version 1 & upgrade engines.node * remove useless breakline * refacto: remove useless async code, add default configuration at "minimal" instead "complete" * fix conflicts * remove security disclosure * fix: ci
1 parent 7ab2a30 commit 34ce270

File tree

8 files changed

+403
-561
lines changed

8 files changed

+403
-561
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v2
1414
with:
15-
node-version: 14.x
15+
node-version: 16.x
1616
- name: Install dependencies
1717
run: npm ci
1818
- name: Run ESLint
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
node-version: [14.x, 16.x]
24+
node-version: [16.x]
2525
fail-fast: false
2626
steps:
2727
- uses: actions/checkout@v2

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<a href="https://www.npmjs.com/package/nsecure"><img src="https://img.shields.io/github/license/NodeSecure/cli?style=flat-square" alt="license"></a>
1212
<a href="https://github.com/NodeSecure/cli/actions?query=workflow%3A%22Node.js+CI%22"><img src="https://img.shields.io/github/workflow/status/NodeSecure/cli/Node.js%20CI/master?style=flat-square" alt="github ci workflow"></a>
1313
<a href="https://codecov.io/github/ES-Community/nsecure"><img src="https://img.shields.io/codecov/c/github/ES-Community/nsecure.svg?style=flat-square" alt="codecov"></a>
14-
<a href="./SECURITY.md"><img src="https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg?style=flat-square" alt="Responsible Disclosure Policy" /></a>
1514
<a href="https://www.npmjs.com/package/nsecure"><img src="https://img.shields.io/npm/dw/nsecure?style=flat-square" alt="downloads"></a>
1615
</p>
1716

SECURITY.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

bin/index.js

100644100755
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ prog
7474
.describe(i18n.getToken("cli.commands.lang.desc"))
7575
.action(commands.lang.set);
7676

77+
prog
78+
.command("config create [configuration]")
79+
.option("-c, --cwd", "create config file at the cwd", false)
80+
.describe("Init your Nodesecure config file")
81+
.action(commands.config.createConfigFile);
82+
83+
prog
84+
.command("config")
85+
.describe("Edit your nodesecure config file")
86+
.action(commands.config.editConfigFile);
87+
7788
prog.parse(process.argv);
7889

7990
function defaultScannerCommand(name, options = {}) {

0 commit comments

Comments
 (0)