Skip to content

Commit 6d44802

Browse files
Xaxxooclaude
andcommitted
fix(security): resolve critical protobufjs CVE and scope gitleaks to PR commits
- Add protobufjs>=7.5.5 override in pnpm-workspace.yaml to fix GHSA-xq3m-2v4x-88gg (arbitrary code execution) pulled in via @xenova/transformers > onnxruntime-web > onnx-proto - Update pnpm-lock.yaml: onnx-proto now resolves protobufjs@7.6.2 - Scope gitleaks scan to origin/<base>..HEAD so only commits introduced by the PR are checked, not the full repo history Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6db0136 commit 6d44802

3 files changed

Lines changed: 10 additions & 22 deletions

File tree

.github/workflows/security.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ jobs:
7373
sudo mv gitleaks /usr/local/bin/gitleaks
7474
7575
- name: Run Gitleaks
76-
run: gitleaks detect --source=. --exit-code 1
76+
run: |
77+
gitleaks detect --source=. --exit-code 1 \
78+
--log-opts="origin/${{ github.base_ref }}..HEAD"
7779
7880
container-scan:
7981
name: Container Scan (Trivy)

pnpm-lock.yaml

Lines changed: 4 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ allowBuilds:
77
msgpackr-extract: true
88
protobufjs: true
99
sharp: true
10+
11+
overrides:
12+
protobufjs: '>=7.5.5'

0 commit comments

Comments
 (0)