Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/dependency-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
permissions:
contents: read
issues: write
# Adds mise.audit.toml (locked in mise.audit.lock): the bun that runs `bun audit`.
env:
MISE_ENV: audit
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -69,14 +72,11 @@ jobs:
audit "examples/ssr-react-router/pnpm-lock.yaml" pnpm -C examples/ssr-react-router audit --ignore-workspace
audit "examples/ssr-tanstack-start/pnpm-lock.yaml" pnpm -C examples/ssr-tanstack-start audit --ignore-workspace
audit "examples/worker-cloudflare/pnpm-lock.yaml" pnpm -C examples/worker-cloudflare audit --ignore-workspace
# `bun audit` needs bun >= 1.2.15, but the bun examples pin bun 1.2.4 on purpose, and mise's
# locked mode refuses a bun that is not in their mise.lock. So run bun from npm through the
# root pnpm (exact version, checked against the registry integrity), from inside each
# example so it reads that example's bun.lock. `pnpm dlx` ignores the workspace's
# minimumReleaseAge, so the same 24 h cooldown is passed explicitly.
# The absolute path keeps mise's shims from resolving the example's own tools.
pnpm_bin="$(mise which pnpm)"
bun_audit() { (cd "$1" && "$pnpm_bin" --config.minimum-release-age=1440 dlx bun@1.4.3 audit); }
# `bun audit` needs bun >= 1.2.15, but the bun examples pin bun 1.2.4 on purpose. So run the
# root's audit bun (mise.audit.toml), from inside each example so it reads that example's
# bun.lock. The absolute path keeps mise from resolving the example's own bun there.
bun_bin="$(mise which bun)"
bun_audit() { (cd "$1" && "$bun_bin" audit); }
audit "examples/backend-bun/bun.lock" bun_audit examples/backend-bun
audit "examples/backend-bun-cjs/bun.lock" bun_audit examples/backend-bun-cjs
audit "examples/backend-deno/bun.lock" bun_audit examples/backend-deno
Expand Down
52 changes: 52 additions & 0 deletions mise.audit.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions mise.audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# The bun that the weekly dependency audit runs: `bun audit` needs bun >= 1.2.15, and the bun
# examples pin 1.2.4 on purpose. `MISE_ENV=audit` adds it to the root tools, as the audit does.
# To bump it, pick a release at least 24 h old, then run
# `MISE_ENV=audit mise lock -p linux-x64,linux-x64-musl,linux-arm64,linux-arm64-musl,macos-x64,macos-arm64,windows-x64 bun`.
[tools]
bun = "1.4.3"
Loading