Skip to content

Commit ea7db9c

Browse files
committed
chore: move security audit from dev/staging to production workflow
Remove pnpm audit gate from bridge-explorer-develop-staging.yml to unblock rapid iteration on develop and staging environments. Add the same audit job to publish-ghcr-image-release.yml so production releases (version tags) remain gated behind a high-severity dependency check.
1 parent a2724f1 commit ea7db9c

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

.github/workflows/bridge-explorer-develop-staging.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,8 @@ permissions:
1818
contents: write # This is required for actions/checkout
1919

2020
jobs:
21-
security-audit:
22-
name: Dependency Security Audit
23-
runs-on: ubuntu-latest
24-
25-
steps:
26-
- name: Checkout code
27-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
28-
with:
29-
fetch-depth: 0
30-
31-
- name: Enable Corepack
32-
run: |
33-
npm install -g corepack@0.34.6
34-
corepack enable
35-
36-
- name: Setup Node
37-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
38-
with:
39-
node-version-file: '.nvmrc'
40-
cache: 'pnpm'
41-
42-
- name: Install dependencies
43-
run: pnpm install --frozen-lockfile
44-
45-
- name: Run security audit
46-
run: pnpm audit --audit-level=high
47-
4821
build-and-push:
4922
name: Build and Push to Artifact Registry
50-
needs: security-audit
5123
runs-on: ubuntu-latest
5224
outputs:
5325
environment: ${{ steps.set-env.outputs.environment }}

.github/workflows/publish-ghcr-image-release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,34 @@ permissions:
1111
packages: write # This is required for pushing to GHCR
1212

1313
jobs:
14+
security-audit:
15+
name: Dependency Security Audit
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Enable Corepack
24+
run: |
25+
npm install -g corepack@0.34.6
26+
corepack enable
27+
28+
- name: Setup Node
29+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
30+
with:
31+
node-version-file: '.nvmrc'
32+
cache: 'pnpm'
33+
34+
- name: Install dependencies
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Run security audit
38+
run: pnpm audit --audit-level=high
39+
1440
Build_and_push_image_to_GHCR:
41+
needs: security-audit
1542
runs-on: ubuntu-latest
1643
steps:
1744
- name: Git clone the repository

0 commit comments

Comments
 (0)