Skip to content

Commit 7204632

Browse files
author
thuggeelya
committed
Scan step with required permissions
1 parent e96d5c2 commit 7204632

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
build:
1111
runs-on: macos-latest
12+
permissions:
13+
contents: read
14+
pull-requests: write
1215

1316
steps:
1417
- name: Checkout
@@ -25,24 +28,8 @@ jobs:
2528
npm run build
2629
npx vitest --watch=false
2730
28-
scan:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v4
33-
34-
- name: Setup Node.js environment
35-
uses: actions/setup-node@v4
36-
with:
37-
node-version: '20'
38-
39-
- name: Install dependencies
40-
run: npm ci
41-
42-
- name: Build
43-
run: npm run build
44-
4531
- name: MCP Shield scan
4632
uses: thuggeelya/mcp-shield-action@v1
4733
with:
4834
server: 'node build/index.js'
35+
sarif: 'false'

0 commit comments

Comments
 (0)