forked from molecule-ai/molecule-core
Consolidates the remaining safe-to-merge dependabot PRs from the 2026-04-28 wave into one consumable PR. Replaces three earlier single-bump PRs (#2245, #2230, #2231) which were closed in favor of this single batch — same pattern as #2235. GitHub Actions majors (SHA-pinned per org convention): github/codeql-action v3 → v4.35.2 (#2228) actions/setup-node v4 → v6.4.0 (#2218) actions/upload-artifact v4 → v7.0.1 (#2216) actions/setup-python v5 → v6.2.0 (#2214) npm dev deps (canvas/, lockfile regenerated in node:22-bookworm container so @emnapi/* and other Linux-only optional deps are properly resolved — Mac-native `npm install` strips them, which caused the earlier #2235 batch to drop these two): @types/node ^22 → ^25.6 (#2231) jsdom ^25 → ^29.1 (#2230) Why each is safe setup-node v4 → v6 / setup-python v5 → v6: Every consumer call pins node-version / python-version explicitly. v5 / v6 changed defaults but pinned consumers are unaffected. Confirmed via grep across .github/workflows/ — all setup-node call sites pin '20' or '22', all setup-python call sites pin '3.11'. codeql-action v3 → v4.35.2: Used as init/autobuild/analyze sub-actions in codeql.yml. v4 bundles a newer CodeQL CLI; ubuntu-latest auto-updates so functional behavior is unchanged. The deprecated CODEQL_ACTION_CLEANUP_TRAP_CACHES env var (per v4.35.2 release notes) is undocumented and we don't set it. upload-artifact v4 → v7.0.1: v6 introduced Node.js 24 runtime requiring Actions Runner >= 2.327.1. All upload-artifact users (codeql.yml, e2e-staging-canvas.yml) run on `ubuntu-latest` (GitHub- hosted), which auto-updates the runner agent. Self-hosted runners are NOT used for these jobs. @types/node 22 → 25 / jsdom 25 → 29: Both are dev-only — @types/node is type definitions, jsdom backs vitest's DOM environment. Tests pass: 79 files / 1154 tests in node:22-bookworm container. Verified locally (Linux container so the lockfile reflects what CI's `npm ci` will install): - cd canvas && npm install --include=optional → 169 packages - npm test → 1154/1154 pass - npm ci → clean install succeeds - npm run build → Next.js prerendering succeeds Closes when this lands (the 3 individual auto-merge PRs from earlier were closed): #2228 #2218 #2216 #2214 #2231 #2230 NOT included (CI failing on dependabot's own run — major framework bumps that need code-side migration tasks, not safe auto-bumps): #2233 next 15 → 16 #2232 tailwindcss 3 → 4 #2226 typescript 5 → 6
58 lines
2.1 KiB
YAML
58 lines
2.1 KiB
YAML
name: SECRET_PATTERNS drift lint
|
|
|
|
# Detects when the canonical SECRET_PATTERNS array in
|
|
# .github/workflows/secret-scan.yml diverges from known consumer
|
|
# mirrors (workspace-runtime's bundled pre-commit hook today; more
|
|
# can be added as the consumer set grows).
|
|
#
|
|
# Why this exists: every side that scans for credentials has its own
|
|
# copy of the pattern list. They drift — most recently the runtime
|
|
# hook lagged the canonical by one pattern (sk-cp- / MiniMax F1088),
|
|
# so a developer's local pre-commit would let a sk-cp- token through
|
|
# while the org-wide CI scan would refuse it. The cost of that drift
|
|
# is dev confusion + delayed feedback; the fix is automated detection.
|
|
#
|
|
# Triggers:
|
|
# - schedule: daily 05:00 UTC. Catches drift introduced by edits
|
|
# to a consumer copy that didn't update canonical here.
|
|
# - push to main/staging where the canonical or this lint changed:
|
|
# catches the inverse — canonical updated but consumers not yet
|
|
# bumped. The lint will fail the push; that's intentional, the
|
|
# person editing canonical is the right person to also update
|
|
# the consumer.
|
|
# - workflow_dispatch: ad-hoc operator runs.
|
|
|
|
on:
|
|
schedule:
|
|
# 05:00 UTC = 22:00 PT / 01:00 ET. Quiet hours so a failure
|
|
# email lands when humans are starting their day, not
|
|
# interrupting it.
|
|
- cron: "0 5 * * *"
|
|
push:
|
|
branches: [main, staging]
|
|
paths:
|
|
- ".github/workflows/secret-scan.yml"
|
|
- ".github/workflows/secret-pattern-drift.yml"
|
|
- ".github/scripts/lint_secret_pattern_drift.py"
|
|
workflow_dispatch:
|
|
|
|
# GITHUB_TOKEN scoped to read-only. The lint only does git checkout
|
|
# + HTTPS GETs to public consumer files; no writes to anything.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Detect SECRET_PATTERNS drift
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Run drift lint
|
|
run: python3 .github/scripts/lint_secret_pattern_drift.py
|