Skip to content

Commit 9d22b21

Browse files
committed
Add a security workflow
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
1 parent dcf0ea7 commit 9d22b21

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/security.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ env:
2222
LC_ALL: C.UTF-8
2323

2424
permissions:
25-
actions: read
2625
contents: read
2726

2827
concurrency:
@@ -41,8 +40,6 @@ jobs:
4140

4241
- name: Install pnpm
4342
uses: step-security/action-setup@0ad50dc56a23060fa78b14cfcf0677c4e14b42bc # v5.0.0
44-
with:
45-
version: 9.15.3
4643

4744
- name: Set up Node.js
4845
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -72,8 +69,6 @@ jobs:
7269

7370
- name: Install pnpm
7471
uses: step-security/action-setup@0ad50dc56a23060fa78b14cfcf0677c4e14b42bc # v5.0.0
75-
with:
76-
version: 9.15.3
7772

7873
- name: Set up Node.js
7974
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -96,8 +91,6 @@ jobs:
9691

9792
- name: Install pnpm
9893
uses: step-security/action-setup@0ad50dc56a23060fa78b14cfcf0677c4e14b42bc # v5.0.0
99-
with:
100-
version: 9.15.3
10194

10295
- name: Set up Node.js
10396
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -114,9 +107,10 @@ jobs:
114107
run: pip install semgrep
115108

116109
- name: Run Semgrep
117-
run: semgrep scan --sarif --output semgrep.sarif
110+
run: semgrep scan --error --sarif --output semgrep.sarif
118111

119112
- name: Upload SARIF
120113
uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
121114
with:
115+
category: semgrep
122116
sarif_file: semgrep.sarif

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"devDependencies": {
55
"prettier": "catalog:"
66
},
7+
"packageManager": "pnpm@9.15.9+sha512.68046141893c66fad01c079231128e9afb89ef87e2691d69e4d40eee228988295fd4682181bae55b58418c3a253bde65a505ec7c5f9403ece5cc3cd37dcf2531",
78
"pnpm": {
89
"overrides": {
910
"protobufjs@<8.0.0": "7.5.8",
@@ -31,6 +32,6 @@
3132
}
3233
},
3334
"engines": {
34-
"node": ">=24.0.0"
35+
"node": ">=24.15.0 <25"
3536
}
3637
}

0 commit comments

Comments
 (0)