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
17 changes: 17 additions & 0 deletions .github/workflows/ci-actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI (actionlint)

on:
workflow_call: {}

permissions:
contents: read

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12
32 changes: 5 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
name: CI

# No path filters: the jobs are cheap, the checks are required by the main
# branch ruleset (a filtered-out required check would block the merge as
# "Expected"), and test-markdown lints files (README.md, ...) that the old
# filter did not cover.
on:
push:
branches: [main]
paths:
- ".github/workflows/**"
- "actions/**"
- "profile/**"
- "sync/**"
- ".markdownlint-cli2.yaml"
- ".mise.toml"
- "mise.lock"
- ".mise/**"
- "workflow-templates/**"
pull_request:
paths:
- ".github/workflows/**"
- "actions/**"
- "profile/**"
- "sync/**"
- ".markdownlint-cli2.yaml"
- ".mise.toml"
- "mise.lock"
- ".mise/**"
- "workflow-templates/**"

permissions:
contents: read
Expand All @@ -34,13 +18,7 @@ concurrency:

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12
uses: ./.github/workflows/ci-actionlint.yml

test-markdown:
uses: ./.github/workflows/ci-markdown.yml
Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ Default community health files, reusable workflows, and shared config for h13 re

Call from any repo via `uses: h13/.github/.github/workflows/<name>@<sha>`:

| Workflow | Stack | Inputs | Steps |
| ------------------ | -------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------- |
| `ci-node.yml` | Node.js (pnpm) | — | pnpm install (cached) → build/lint/typecheck/test |
| `publish-node.yml` | Node.js (pnpm) | — | build → test → pnpm publish (OIDC provenance) |
| `ci-go.yml` | Go | — | go test -race → golangci-lint |
| `ci-php.yml` | PHP | `php-version`, `php-extensions`, `working-directory`, `composer-args`, `test-command` | composer install (cached) → composer test |
| `ci-opentofu.yml` | OpenTofu | `working-directory` | tofu fmt/init/validate → tflint |
| `ci-markdown.yml` | Markdown | `glob` | markdownlint-cli2 (org config auto-applied) |
| `ci-zizmor.yml` | GitHub Actions | `min-severity` | zizmor static analysis of workflows |
| Workflow | Stack | Inputs | Steps |
| ------------------- | -------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------- |
| `ci-node.yml` | Node.js (pnpm) | — | pnpm install (cached) → build/lint/typecheck/test |
| `publish-node.yml` | Node.js (pnpm) | — | build → test → pnpm publish (OIDC provenance) |
| `ci-go.yml` | Go | — | go test -race → golangci-lint |
| `ci-php.yml` | PHP | `php-version`, `php-extensions`, `working-directory`, `composer-args`, `test-command` | composer install (cached) → composer test |
| `ci-opentofu.yml` | OpenTofu | `working-directory` | tofu fmt/init/validate → tflint |
| `ci-markdown.yml` | Markdown | `glob` | markdownlint-cli2 (org config auto-applied) |
| `ci-zizmor.yml` | GitHub Actions | `min-severity` | zizmor static analysis of workflows |
| `ci-actionlint.yml` | GitHub Actions | — | actionlint syntax/expression check of workflows |

All workflows enforce `permissions: { contents: read }` (least-privilege).

Expand Down Expand Up @@ -97,7 +98,7 @@ h13/dotfiles ← Dev environment + repo-init
└─ configures → GitHub settings (branch protection, labels, alerts)

h13/.github ← Reusable Workflows + shared config ★
├─ ci-{node,go,php,opentofu,markdown,zizmor}.yml (reusable, SHA-pinned)
├─ ci-{node,go,php,opentofu,markdown,zizmor,actionlint}.yml (reusable, SHA-pinned)
├─ compliance-audit.yml (monthly)
├─ repo-sync.yml (dynamic sync to all repos)
└─ setup-toolchain action
Expand Down