This guide covers composite actions and reusable workflows. For a first documentation change, checkout, local checks and PR submission, start with the repository contribution guide. Keep this guide for catalogue-specific conventions rather than duplicating that setup.
Use the <active-verb>-<purpose> pattern:
- ✅
enable-auto-merge-on-pr,setup-go-toolchain,login-to-ghcr - ❌
auto-merge-action,go-setup,ghcr
Use kebab-case for all action inputs, including secret-backed ones. Workflow inputs can keep their own conventions:
- ✅
app-id,go-version,github-token,app-private-key - ❌
app_id,goVersion,GITHUB_TOKEN,APP_PRIVATE_KEY
Each action directory must contain:
action.yaml— Action metadata withname,description,author: devantler-tech, inputs, and stepsREADME.md— Documentation following the template
# <Action Name>
<One-line description>
## Inputs
| Name | Description | Required | Default |
|------|-------------|----------|---------|
## Outputs
| Name | Description |
|------|-------------|
## Usage
### <Scenario>
\`\`\`yaml
steps:
- uses: devantler-tech/.github/actions/<action-name>@<full-commit-sha> # vX.Y.Z
with:
...
\`\`\`Prefer composite actions over JavaScript or Docker actions unless complexity demands otherwise.
The action suite is portfolio-first and publicly reusable by direct path, but it
is intentionally not published as a family of GitHub Marketplace listings in its
current multi-action repository layout. Marketplace publishing requires a root
action.yml or action.yaml; metadata in subdirectories is not automatically
listed. Do not add branding: to nested action metadata as a proxy for
publication.
If an action develops enough independent demand to justify its own repository,
extract it deliberately into an <action-name>-action repository with its own branding,
release lifecycle, and Marketplace listing.
Every action has a test-<action-name> job in the consolidated
.github/workflows/ci.yaml. The job calls the local
action with uses: ./actions/<action-name>, starts with SHA-pinned
step-security/harden-runner in audit mode, checks out with
persist-credentials: false, and verifies its real behavior with safe fixtures.
Reusable-workflow scenarios are jobs in that same file and call
uses: ./.github/workflows/<workflow>.yaml with non-destructive parameters.
Wire every new job into both ci-required-checks.needs and the trusted inline
summary step's JOB_RESULTS value using ${{ needs.<job-id>.result }}. A job omitted
from either side is incomplete coverage. The summary runs with always() and
permissions: {} and executes no checked-out action; it is the sole exception
to harden-runner-first. Run the coverage and script-wiring checks from
AGENTS.md before opening a PR.
Every .github/tests/test-*.sh entrypoint, regardless of executable bit, has an
unconditional dedicated invocation in a blocking CI job, anchored at the
repository root and included in both summary aggregations. Printed commands,
comments and helpers do not count as execution.
- Run zizmor to scan for GitHub Actions vulnerabilities
- Pin every remote action and reusable workflow to a full 40-character commit SHA,
including
actions/*,github/*anddevantler-tech/*. Use@<full-commit-sha> # vX.Y.Zin documentation and replace both placeholders before running an example. Local./references resolve against the checked-out commit. - External action pin comment convention. Annotate each third-party SHA pin so a
reader can tell at a glance whether it tracks a tag or a branch:
- Pinned to a release tag →
# v<version>(e.g.# v6.0.2). This is the default; use it whenever the upstream publishes releases. - Pinned to a branch commit because the upstream publishes no tags or releases
(main-tracked only) →
# <branch> (no upstream releases)(e.g.# main (no upstream releases)). This keeps the comment honest — it names the branch and why there is no version, so a future re-pin to a newer branch commit is not mistaken for a floating branch ref.
- Pinned to a release tag →
- Every version pin is tracked or listed.
.github/scripts/version-pin-census.shlists every pin in workflows, workflow templates, action metadata and Go modules. A pin passes when Dependabot updates it: a full-SHA action with a# v<version>comment in a directory thatdependabot.ymlcovers, or a module in agomodentry that does not ignore*. Any other pin needs an entry with its refresh path in.github/version-pins.json. That covers images, which must always carry a digest, tool versions inrun:,with:andenv:, branch-tracked actions and frozen fixtures. A Docker action whose metadata runs a floating image tag is called by image digest instead (uses: docker://<image>:<tag>@sha256:<digest>). The census fails on a mutable, untracked or unlisted pin and on a manifest entry that no longer matches. Update the entry in the same PR as the pin.bash .github/tests/test-version-pin-census.shruns it with its refusal controls. Image references are checked underimage:,container:,docker://, any*_IMAGEassignment,docker run/pull/createarguments, joined across continued lines, and every digest anywhere. In an expression, each result branch must be digest-pinned or empty. The census has four limits. It cannot see inside third-party actions, so check a new Docker action'sruns.imageby hand. It does not resolve shell variables, other than*_IMAGEassignments. A tool version needs a dotted number (pkg@1.2, notpkg@1). And a#inside a quoted string ends the scanned text.
A composite step that performs a network pull — a Homebrew tap/install, a registry login, a tool/toolchain download — can fail a required CI check on a transient registry/network flake (a GHCR 5xx, a DNS/TLS blip) rather than on a real defect, blocking unrelated PRs across every consumer repo. Wrap such pulls in the shared bounded-retry helper so infra noise can't masquerade as a failure:
retry() { bash "${GITHUB_ACTION_PATH}/../../.scripts/retry.sh" "$@"; }
retry brew install <formula>.scripts/retry.sh retries with exponential backoff (tunable via
RETRY_MAX_ATTEMPTS, RETRY_BASE_DELAY, RETRY_MAX_DELAY) and exits non-zero
with the command's last status once attempts are exhausted, so a genuine failure
still reds the check. Only wrap the network commands — leave local operations
unwrapped. It is used by setup-ksail-cli (brew tap / brew install).
The standalone setup
and update actions
own their installer and registry retry helpers as part of the reliability pillar
(devantler-tech/actions#247).
Use semantic commits:
feat:— New action or featurefix:— Bug fixdocs:— Documentation changeschore:— Maintenance tasksci:— CI/CD changes