fullshield 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -5
- package/dist/cli/index.js +126 -124
- package/models/index.json +1 -1
- package/package.json +2 -1
- package/templates/action/action.yml +1 -1
- package/templates/fullshield-bumps.yml +2 -2
- package/templates/github-workflow-action.yml +1 -1
- package/templates/github-workflow-diff.yml +1 -1
- package/templates/stranger-check.md +14 -0
- package/templates/tutorial/app.js +15 -0
package/models/index.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fullshield",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Full-cycle security scanner for Node.js/TypeScript backends: detect, classify, report, notify, fix, prevent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
],
|
|
131
131
|
"ignore": [
|
|
132
132
|
"test/fixtures/**",
|
|
133
|
+
"templates/tutorial/**",
|
|
133
134
|
"scripts/doc-version-check.mjs",
|
|
134
135
|
"scripts/autopilot/guard.mjs",
|
|
135
136
|
"docs/current/guard.mjs"
|
|
@@ -9,9 +9,9 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-24.04
|
|
10
10
|
steps:
|
|
11
11
|
- uses: actions/checkout@v7
|
|
12
|
-
- run: npx fullshield@3.
|
|
12
|
+
- run: npx fullshield@3.5.0 bumps plan --from .fullshield/last-scan.json
|
|
13
13
|
env:
|
|
14
14
|
FULLSHIELD_EXPERIMENTAL_BUMP_PR: '1'
|
|
15
|
-
- run: npx fullshield@3.
|
|
15
|
+
- run: npx fullshield@3.5.0 bumps open --from .fullshield/last-scan.json
|
|
16
16
|
env:
|
|
17
17
|
FULLSHIELD_EXPERIMENTAL_BUMP_PR: '1'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Stranger check
|
|
2
|
+
|
|
3
|
+
Run these steps yourself after a release is on npm. This file is a template. It is not a GitHub workflow and it does not post a status.
|
|
4
|
+
|
|
5
|
+
1. `npx fullshield@<version> --version`
|
|
6
|
+
2. `npx fullshield@<version> scan` on a project you own
|
|
7
|
+
3. `npx fullshield@<version> scan --json`
|
|
8
|
+
4. `npx fullshield@<version> scan --sarif`
|
|
9
|
+
5. `npx fullshield@<version> scan --fail-on high`
|
|
10
|
+
6. `npx fullshield@<version> fix --dry-run`
|
|
11
|
+
7. `npx fullshield@<version> init`
|
|
12
|
+
8. `npx fullshield@<version> sbom`
|
|
13
|
+
|
|
14
|
+
No company quote belongs in this file.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function demo() {
|
|
2
|
+
const app = {
|
|
3
|
+
post(_path, handler) {
|
|
4
|
+
handler({ body: { name: 'sample' } }, { send(value) { return value; } });
|
|
5
|
+
},
|
|
6
|
+
};
|
|
7
|
+
const req = { body: { name: 'sample' } };
|
|
8
|
+
const res = { send(value) { return value; } };
|
|
9
|
+
// checklist: see rules/README.md
|
|
10
|
+
app.post('/in', () => {
|
|
11
|
+
res.send(req.body.name);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
demo();
|