Skip to content

Commit aab84a6

Browse files
committed
Update CI and Semgrep workflows for improved dependency management
- Changed the CI workflow to use `npm ci` for consistent and faster dependency installation. - Updated the Semgrep workflow to install Semgrep using a requirements file with hash verification for enhanced security and reproducibility. These changes aim to streamline the setup process and ensure reliable builds.
1 parent 4d22609 commit aab84a6

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/requirements-semgrep.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
semgrep==1.161.0 --hash=sha256:bf4bc7caf27fa817f4a5a26b0875add679bc011aff70ae44aa46913e21f5a401

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
cache: npm
2929

3030
- name: Install dependencies
31-
run: npm i
31+
run: npm ci
3232

3333
- name: Prettier
3434
run: npm run format:check

.github/workflows/semgrep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
python-version: "3.12"
3434
- name: Install Semgrep
35-
run: pip install semgrep
35+
run: python -m pip install --require-hashes -r .github/requirements-semgrep.txt
3636
- name: Semgrep CI
3737
run: |
3838
mkdir -p reports

0 commit comments

Comments
 (0)