Skip to content
h13Public

About

Reusable CI workflows, shared config, and automation for h13 repositories

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

.github

CI License: MIT

Default community health files, reusable workflows, and shared config for h13 repositories.

Reusable Workflows

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
ci-actionlint.yml GitHub Actions — actionlint syntax/expression check of workflows

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

Toolchain policy

Runtimes and CLIs come from the calling repository's .mise.toml via the setup-toolchain action — one source of truth shared by local dev and CI, kept fresh by Renovate. The exceptions are deliberate:

  • Go (ci-go.yml): actions/setup-go reads the version from go.mod and ships module/build caching that mise does not provide
  • PHP (ci-php.yml): shivammathur/setup-php installs prebuilt binaries and extensions; the mise PHP plugin compiles from source

Repositories calling the mise-based workflows (ci-node, publish-node, ci-opentofu, ci-markdown) must declare the required tools (node/pnpm, opentofu/tflint, npm:markdownlint-cli2, …) in .mise.toml. IaC is standardised on OpenTofu; there is no Terraform workflow.

Example

name: CI
on:
  push:
    branches: [main]
  pull_request:
jobs:
  ci:
    uses: h13/.github/.github/workflows/ci-node.yml@c62d0eebefffc0d3ca156453f0fb7cd3dcb94f4c # main

Versioning

  • Every push to main is tagged and released automatically (release.yml); the semver bump is derived from the conventional commit types since the last tag
  • Consumers reference workflows/actions as @<sha> # vX.Y.Z; Renovate bumps the pins against the tags (Dependabot is not used)

Composite Actions

Action Description
actions/setup-toolchain mise runtimes + pnpm store cache + lockfile-pinned install; cache: "false" for privileged jobs

Automation

Workflow Schedule Description
Compliance Audit Monthly (1st) Checks all repos for renovate.json, CI, branch protection, LICENSE, CODEOWNERS
Repo Sync On push to sync/ Syncs PR/issue templates to all non-archived repos (dynamic)

Community Health Files

Org-wide defaults (applied to all repos without their own):

File Purpose
SECURITY.md Vulnerability reporting policy
CONTRIBUTING.md Contribution guidelines
CODEOWNERS Default code review ownership
LICENSE MIT license

Dependency Policy

All repositories use Renovate exclusively for dependency management. Dependabot is not used. The shared preset is maintained in h13/renovate-config.

Ecosystem

h13/dotfiles                      ← Dev environment + repo-init
  └─ repo-init --stack=node --github
       ├─ generates → renovate.json ──→ h13/renovate-config
       ├─ generates → .github/workflows/ci.yml (SHA-pinned)
       └─ configures → GitHub settings (branch protection, labels, alerts)

h13/.github                       ← Reusable Workflows + shared config ★
  ├─ 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

h13/renovate-config               ← Shared Renovate preset
  ├─ default.json (config:best-practices + all stack rules, single preset)
  └─ resolved-config tests + daily canary against renovate@latest

About

Reusable CI workflows, shared config, and automation for h13 repositories

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors