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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- "sync/**"
- ".markdownlint-cli2.yaml"
- ".mise.toml"
- "mise.lock"
pull_request:
paths:
- ".github/workflows/**"
Expand All @@ -18,6 +19,7 @@ on:
- "sync/**"
- ".markdownlint-cli2.yaml"
- ".mise.toml"
- "mise.lock"

permissions:
contents: read
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/compliance-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ jobs:
fi
fi

# Repos on mise-based shared CI must declare their toolchain in .mise.toml
if ! echo "$TREE" | grep -qE "^\.?mise\.toml$"; then
while read -r wf; do
[ -n "$wf" ] || continue
WF_CONTENT=$(gh api "repos/h13/$repo/contents/$wf" --jq '.content' 2>/dev/null | base64 -d || true)
if grep -qE "h13/\.github/(\.github/workflows/(ci-node|publish-node|ci-markdown|ci-opentofu|ci-terraform)\.yml|actions/setup-toolchain)" <<< "$WF_CONTENT"; then
FINDINGS="${FINDINGS}\n - [ ] Missing \`.mise.toml\` (mise-based shared CI needs it)"
break
fi
done <<< "$(echo "$TREE" | grep -E "^\.github/workflows/.*\.ya?ml$" || true)"
fi

if [ -n "$FINDINGS" ]; then
REPORT="${REPORT}\n### $repo\n$FINDINGS\n"
ISSUES_FOUND=$((ISSUES_FOUND + 1))
Expand Down
3 changes: 3 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[settings]
lockfile = true

[tools]
node = "26.13.1"
11 changes: 9 additions & 2 deletions actions/setup-toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ inputs:
install:
description: Run pnpm install --frozen-lockfile --ignore-scripts when pnpm-lock.yaml exists
default: "true"
cache:
description: >-
Restore caches (mise installs, pnpm store). Set to "false" in privileged
jobs (release/publish paths) so they never consume a cache another run
could have seeded.
default: "true"

runs:
using: composite
Expand All @@ -13,15 +19,16 @@ runs:
with:
# renovate: datasource=github-releases depName=jdx/mise
version: "2026.11.16"
cache: ${{ inputs.cache }}

- name: Resolve pnpm store path
if: hashFiles('pnpm-lock.yaml') != ''
if: inputs.cache == 'true' && hashFiles('pnpm-lock.yaml') != ''
id: pnpm-store
shell: bash
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"

- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
if: hashFiles('pnpm-lock.yaml') != ''
if: inputs.cache == 'true' && hashFiles('pnpm-lock.yaml') != ''
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
Expand Down
36 changes: 36 additions & 0 deletions mise.lock

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