Skip to content

Commit 8c6fbbd

Browse files
committed
fix(ci): skip pnpm install for gitleaks job
gitleaks job only needs gitleaks binary, not node dependencies
1 parent 68f2f11 commit 8c6fbbd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/actions/setup-nix/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
description: 'Space-separated list of nixpkgs packages to install (e.g., "nodejs_24 pnpm_10 oxlint")'
66
required: false
77
default: 'nodejs_24 pnpm_10'
8+
skip-pnpm-install:
9+
description: 'Skip pnpm install step (useful for jobs that do not need node dependencies)'
10+
required: false
11+
default: 'false'
812
runs:
913
using: 'composite'
1014
steps:
@@ -24,5 +28,6 @@ runs:
2428
nix profile install $packages
2529
2630
- name: Install pnpm dependencies
31+
if: inputs.skip-pnpm-install != 'true'
2732
shell: bash
2833
run: pnpm install --frozen-lockfile

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: ./.github/actions/setup-nix
2929
with:
3030
tools: gitleaks
31+
skip-pnpm-install: 'true'
3132

3233
- name: Run Gitleaks
3334
run: gitleaks detect --source . --config .gitleaks.toml

0 commit comments

Comments
 (0)