fullshield 2.3.0 → 3.0.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 +17 -0
- package/README.md +14 -9
- package/dist/agent.js +43 -42
- package/dist/cli/index.js +122 -100
- package/dist/index.d.ts +2 -0
- package/dist/index.js +63 -62
- package/dist/mcp.js +42 -41
- package/dist/workspaces.js +3 -2
- package/models/index.json +1 -1
- package/package.json +1 -1
- package/templates/action/action.yml +2 -2
- package/templates/github-workflow-action.yml +1 -1
- package/templates/policy/fullshield.policy.json +8 -0
package/dist/workspaces.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {existsSync,readFileSync}from'fs';import {join}from'path';function
|
|
2
|
-
`).map(r=>r.replace(/^-+\s*/,"").trim()).filter(r=>r.length>0&&!r.startsWith("packages:")):[]}
|
|
1
|
+
import {existsSync,readFileSync,readdirSync}from'fs';import {join}from'path';function p(t){let e=join(t,"package.json");if(!existsSync(e))return [];try{let r=JSON.parse(readFileSync(e,"utf8"));if(Array.isArray(r.workspaces))return r.workspaces.filter(n=>typeof n=="string");if(Array.isArray(r.workspaces?.packages))return r.workspaces.packages.filter(n=>typeof n=="string")}catch{return []}let s=join(t,"pnpm-workspace.yaml");return existsSync(s)?readFileSync(s,"utf8").split(`
|
|
2
|
+
`).map(r=>r.replace(/^-+\s*/,"").trim()).filter(r=>r.length>0&&!r.startsWith("packages:")):[]}function g(t,e){let s=e.replace(/\\/g,"/").replace(/^\.\//,"");if(!s.includes("*"))return [s];let r=s.indexOf("/*");if(r<0)return [];let n=s.slice(0,r);try{return readdirSync(join(t,n),{withFileTypes:!0}).filter(i=>i.isDirectory()).map(i=>`${n}/${i.name}`).sort()}catch{return []}}function m(t){let e=new Set;for(let s of p(t))for(let r of g(t,s))r!==""&&r!=="."&&e.add(r);return e.size>1}function k(t,e={}){return !e.experimental&&process.env.FULLSHIELD_EXPERIMENTAL_PLATFORM!=="1"?[]:p(t)}
|
|
3
|
+
export{m as isMultiWorkspaceProject,k as listWorkspaces};
|
package/models/index.json
CHANGED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ inputs:
|
|
|
9
9
|
version:
|
|
10
10
|
description: 'Pinned fullshield npm version'
|
|
11
11
|
required: false
|
|
12
|
-
default: '
|
|
12
|
+
default: '3.0.0'
|
|
13
13
|
fail-on:
|
|
14
14
|
description: 'Minimum severity that fails the job'
|
|
15
15
|
required: false
|
|
@@ -45,7 +45,7 @@ runs:
|
|
|
45
45
|
uses: actions/setup-node@v7
|
|
46
46
|
with:
|
|
47
47
|
node-version: '22'
|
|
48
|
-
- name: Install fullshield@
|
|
48
|
+
- name: Install fullshield@3.0.0
|
|
49
49
|
shell: bash
|
|
50
50
|
run: npm install --global fullshield@${{ inputs.version }}
|
|
51
51
|
- name: Cache FullShield baseline
|