Skip to content

Commit 5840524

Browse files
authored
Security maintenance (#304)
* chore(.npmrc): add save-exact + ignore-scripts * chore(dependabot): cool-down to 5 days * chore: drop Node.js v20 * ci: drop NodeSecure ci-action
2 parents ab93e60 + e193fcc commit 5840524

File tree

5 files changed

+11
-27
lines changed

5 files changed

+11
-27
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ updates:
44
directory: /
55
schedule:
66
interval: monthly
7+
cooldown:
8+
default-days: 5
79
groups:
810
github-actions:
911
patterns:
@@ -24,5 +26,7 @@ updates:
2426
directory: /test/fixtures/audit
2527
schedule:
2628
interval: weekly
29+
cooldown:
30+
default-days: 5
2731
ignore:
2832
- dependency-name: "*"

.github/workflows/main.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v2.6.0
2121
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2222
with:
23-
node-version: 22.x
23+
node-version: 24.x
2424
- name: Install dependencies
25-
run: npm install
25+
run: npm install --ignore-scripts
2626
- name: Run ESLint
2727
run: npm run lint
2828
test:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
node-version: [20.x, 22.x]
32+
node-version: [22.x, 24.x]
3333
fail-fast: false
3434
steps:
3535
- name: Harden Runner
@@ -60,25 +60,3 @@ jobs:
6060
uses: fastify/github-action-merge-dependabot@1b2ed42db8f9d81a46bac83adedfc03eb5149dff # v3.11.2
6161
with:
6262
github-token: ${{ secrets.GITHUB_TOKEN }}
63-
nsci:
64-
runs-on: ubuntu-latest
65-
strategy:
66-
matrix:
67-
node-version: [20.x, 22.x]
68-
fail-fast: false
69-
steps:
70-
- name: Harden Runner
71-
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
72-
with:
73-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
74-
75-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
76-
- name: Use Node.js ${{ matrix.node-version }}
77-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
78-
with:
79-
node-version: ${{ matrix.node-version }}
80-
- name: Install dependencies
81-
run: npm install
82-
- uses: NodeSecure/ci-action@e3ac9c03585752e979622279106a161e94d5717b # v1
83-
with:
84-
warnings: warning

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
package-lock=false
2+
save-exact=true
3+
ignore-scripts=true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
The **vuln-*era*** has begun! Programmatically fetch security vulnerabilities with one or many strategies. Originally designed to run and analyze [Scanner](https://github.com/NodeSecure/scanner) dependencies it now also runs independently from an npm Manifest.
2121

2222
## Requirements
23-
- [Node.js](https://nodejs.org/en/) v20 or higher
23+
- [Node.js](https://nodejs.org/en/) v22 or higher
2424

2525
## Getting Started
2626

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "NodeSecure vulnerabilities strategies",
55
"type": "module",
66
"engines": {
7-
"node": ">=20"
7+
"node": ">=22"
88
},
99
"exports": "./dist/index.js",
1010
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)