Skip to content

Commit 69e118e

Browse files
committed
Harden CI workflows and actions
- SHA-pin all external actions (checkout v6.0.2, setup-node v6.4.0, foundry-toolchain v1.8.0, slither-action v0.4.2) - Remove custom PAT (ZKEVM_BRIDGE_CONTRACTS_GITHUB_TOKEN), use native github.token scoped to the coverage publish step - Add permissions: {} at workflow level with least-privilege job-level permissions - Add persist-credentials: false to all checkout steps - Collapse four on-push workflows (e2e, lint, static-analysis, test) into a single ci.yml with parallel jobs - Extract setup-node and setup-foundry composite actions to centralize SHA pins - Remove borales/actions-yarn (yarn is pre-installed on runners) and node-cache action (replaced by setup-node built-in caching) - Harden yarn install with --frozen-lockfile --ignore-scripts --non-interactive - Rewrite coverage action in TypeScript (node16 → node20), using context.repo instead of hardcoded owner/repo, with ESLint + Rollup build toolchain on pnpm - Add Dependabot configuration for github-actions and npm ecosystems - Resolves all zizmor findings
1 parent ef61dde commit 69e118e

21 files changed

Lines changed: 36834 additions & 270 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
---
2-
name: 'Publish coverage report'
3-
description: 'Create or update PR comment with coverage report'
1+
name: "Publish coverage report"
2+
description: "Create or update PR comment with coverage report"
43

54
inputs:
6-
coverage:
5+
coverage:
76
description: The coverage report to publish
87
required: true
8+
github-token:
9+
description: "GitHub token for PR comment access"
10+
required: true
911

1012
runs:
11-
using: 'node16'
12-
main: 'index.js'
13+
using: "node20"
14+
main: "dist/index.js"

0 commit comments

Comments
 (0)