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
9 changes: 5 additions & 4 deletions .github/workflows/ci-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ jobs:
echo "Applied org config: $CONFIG_FILE"
fi

# node comes from the calling repository's .mise.toml — the single
# source of truth for tool versions, kept fresh by Renovate.
- uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0
# node and markdownlint-cli2 come from the calling repository's
# .mise.toml ("npm:markdownlint-cli2" backend) — the single source of
# truth for tool versions, kept fresh by Renovate.
- uses: h13/.github/actions/setup-toolchain@95520e9c5998f9f9462db3f0b4619587732599b9 # v2.1.0

- env:
GLOB: ${{ inputs.glob }}
run: npx markdownlint-cli2 "$GLOB"
run: markdownlint-cli2 "$GLOB"
2 changes: 1 addition & 1 deletion .github/workflows/ci-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

# Toolchain comes from the calling repository's .mise.toml — the single
# source of truth for node/pnpm versions, kept fresh by Renovate.
- uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0
- uses: h13/.github/actions/setup-toolchain@95520e9c5998f9f9462db3f0b4619587732599b9 # v2.1.0

- run: pnpm run --if-present build
- run: pnpm run --if-present lint
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/ci-opentofu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,50 @@ name: CI (OpenTofu)

on:
workflow_call:
inputs:
working-directory:
description: Directory containing the OpenTofu configuration
type: string
default: "."

permissions:
contents: read

jobs:
validate:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ inputs.working-directory }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# opentofu comes from the calling repository's .mise.toml — the single
# source of truth for tool versions, kept fresh by Renovate.
- uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0
- uses: h13/.github/actions/setup-toolchain@95520e9c5998f9f9462db3f0b4619587732599b9 # v2.1.0

- run: tofu fmt -check -recursive
- run: tofu init -backend=false
- run: tofu validate

lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ inputs.working-directory }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# tflint comes from the calling repository's .mise.toml
- uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0
- uses: h13/.github/actions/setup-toolchain@95520e9c5998f9f9462db3f0b4619587732599b9 # v2.1.0

# Authenticated so plugin downloads from GitHub Releases don't hit
# the anonymous rate limit.
- run: tflint --init
env:
GITHUB_TOKEN: ${{ github.token }}
- run: tflint --recursive
47 changes: 0 additions & 47 deletions .github/workflows/ci-terraform.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- ".markdownlint-cli2.yaml"
- ".mise.toml"
- "mise.lock"
- ".mise/**"
- "workflow-templates/**"
pull_request:
paths:
- ".github/workflows/**"
Expand All @@ -20,6 +22,8 @@ on:
- ".markdownlint-cli2.yaml"
- ".mise.toml"
- "mise.lock"
- ".mise/**"
- "workflow-templates/**"

permissions:
contents: read
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/publish-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ jobs:

# Toolchain comes from the calling repository's .mise.toml — the single
# source of truth for node/pnpm versions, kept fresh by Renovate.
# mise-action is used directly instead of the setup-toolchain action:
# this job publishes with elevated credentials, so it must not restore
# caches (cache poisoning of a release path). No registry-url/.npmrc
# setup is needed — publishing authenticates via OIDC trusted
# publishing (id-token: write).
- uses: jdx/mise-action@3277a0f272901982804abc53abd93520db809be4 # v5.4.0
# cache is off: this job publishes with elevated credentials, so it
# must not restore caches another run could have seeded (release-path
# cache poisoning). No registry-url/.npmrc setup is needed — publishing
# authenticates via OIDC trusted publishing (id-token: write).
- uses: h13/.github/actions/setup-toolchain@95520e9c5998f9f9462db3f0b4619587732599b9 # v2.1.0
with:
# renovate: datasource=github-releases depName=jdx/mise
version: "2026.11.16"
cache: "false"

- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm run build
- run: pnpm test
- run: pnpm publish --no-git-checks --access public --provenance
Expand Down
1 change: 1 addition & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ lockfile = true

[tools]
node = "26.13.1"
"npm:markdownlint-cli2" = "0.24.2"
Loading
Loading