Skip to content

chore: supply-chain hardening#23

Open
erik1o6 wants to merge 1 commit into
mainfrom
chore/repo-hardening-2026-05-12
Open

chore: supply-chain hardening#23
erik1o6 wants to merge 1 commit into
mainfrom
chore/repo-hardening-2026-05-12

Conversation

@erik1o6

@erik1o6 erik1o6 commented May 11, 2026

Copy link
Copy Markdown

Applies the repo-hardening skill (bun ecosystem).

Repo posture

  • Type: app (bun runtime; small service for token images)
  • Mixed lockfiles: had bun.lockb AND pnpm-lock.yaml. All scripts call bun run — bun is the source of truth
  • One workflow: triggers HTTP syncs; does not install deps

Controls applied

  • Deleted pnpm-lock.yaml (kept bun.lockb)
  • 4/5. Added bunfig.toml with [install] frozenLockfile=true, exact=true — bun equivalent of npm ci + save-exact=true
  • 8. .github/dependabot.yml with 7-day cooldown for npm and github-actions
  • 10. Workflow permissions contents: read

Skipped

  • 1: deps still ranged — pinning them is a separate small PR; lockfile + frozen gate provides interim protection
  • 2: no packageManager field (bun isn't supported by Corepack as of writing)
  • 3: .nvmrc/engines.node not added — repo runs only on bun, not Node
  • 6/7: no PR-CI workflow
  • 9: no Dockerfile
  • 11: workflow only has scheduled trigger; no actions/checkout etc. to pin
  • Native release-age gate not available in bun yet — flagged for follow-up when bun adds it

⚠️ Needs review

  • Bun ecosystem — confirm bunfig.toml keys are picked up by your dev/deploy paths
  • Deleted pnpm-lock.yaml — confirm nothing in deploy used pnpm path

- Delete pnpm-lock.yaml (bun.lockb is the source of truth — all scripts use `bun run`)
- Add bunfig.toml with [install] frozenLockfile=true, exact=true
- fetch-token-images.yml: add permissions: contents: read
- Add .github/dependabot.yml with 7-day cooldown for npm and github-actions

Notes: bun does not currently expose a native release-age gate; relying on bun.lockb + frozenLockfile + dependabot cooldown for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants