Skip to content

Commit 4404150

Browse files
fix: resolve semgrep and TypeScript client CI failures
- Add pip install semgrep step to semgrep workflow - Make TypeScript client prepare script CI-aware to skip husky install in CI - Resolve 'semgrep: command not found' error in semgrep workflow - Resolve 'husky install' failure in TypeScript client workflow Both workflows should now pass successfully.
1 parent d65aa63 commit 4404150

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/semgrep.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
security-events: write
1919
steps:
2020
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
21+
- name: Install Semgrep
22+
run: pip install semgrep
2123
- name: Run Semgrep
2224
run: semgrep --config p/python,p/secrets --sarif results.sarif
2325

clients/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"format:check": "prettier --check src/**/*.ts",
3232
"clean": "rm -rf dist coverage",
3333
"dev": "node scripts/dev.js",
34-
"prepare": "husky install",
34+
"prepare": "if [ \"$CI\" != \"true\" ]; then husky install; fi",
3535
"prepublishOnly": "npm run build && npm test",
3636
"pre-commit": "npm run lint && npm run format:check",
3737
"pre-push": "npm run test:smoke"

0 commit comments

Comments
 (0)