- Python 74.4%
- Dockerfile 21.7%
- JavaScript 3.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
test auto-tag / test (push) Successful in 3s
test docker-publish / test (push) Successful in 8s
test forgejo-release / test (push) Successful in 2s
test hassfest / test (push) Successful in 15s
test node-test / test (push) Successful in 6s
test python-test / test (push) Successful in 15s
test security-scan / test (push) Successful in 28s
|
||
| .forgejo/workflows | ||
| auto-tag | ||
| docker-publish | ||
| fixtures | ||
| forgejo-release | ||
| hassfest | ||
| node-test | ||
| python-test | ||
| security-scan | ||
| templates | ||
| PATTERNS.md | ||
| README.md | ||
workflow-basics
Shared composite actions for my Forgejo repositories, so every project does tests, security scans, image builds and tagging the same way.
Using an action
Always use the full URL form and follow main:
- uses: https://git.timstoop.nl/tim/workflow-basics/python-test@main
The short form tim/workflow-basics/python-test@main does not work: it
resolves against the instance's default action source, not this Forgejo.
Copy a starter from templates/ rather than writing a workflow
from scratch.
Patterns
PATTERNS.md collects the rules that came out of real problems
(no scanner suppressions, validated query fragments, one Python version, release
flow, how to read CI results). Point people and LLMs at it before they change
code, CI or releases in any repository.
Actions
| Action | Does | Runner |
|---|---|---|
python-test |
venv, install project, ruff check, ruff format --check, pytest |
python-3.14 |
security-scan |
bandit, pip-audit, gitleaks (checksum verified) | python-3.14 |
node-test |
npm ci, npm audit, then the project's npm scripts, all inside a Docker build |
cross-compile |
docker-publish |
multi-arch buildx build and push to this Forgejo's registry |
cross-compile |
forgejo-release |
create the Forgejo release for a tag: CHANGELOG section as notes, image pull commands, idempotent | debian-latest |
auto-tag |
create vX.Y.Z from pyproject.toml when it has a CHANGELOG entry |
python-3.14 |
hassfest |
Home Assistant's own validator for custom integrations (manifest, requirements, config flow, ...) | cross-compile |
All inputs have defaults and are documented in each action.yml.
Conventions
- Secret: the global
REPO_WRITER_PAT. It is passed in explicitly (registry-token:, ortoken:onactions/checkoutforauto-tag), never read by an action itself. No other token names. - No hardcoded hostnames: the registry is derived from
github.server_url. - Tags drive releases: images are published on
vX.Y.Ztags. Branch and PR runs build and test only. - Python: runs on the
python-3.14runner label, in a venv. - Node: only ever runs in Docker (
node-teston thecross-compilelabel), never on a runner or host. - ruff version: the
ruff-versioninput is pinned. Keep it in sync with the repository's.pre-commit-config.yaml.
Releasing this repository
Each action tests itself against fixtures/ in its own
.forgejo/workflows/test-<action>.yml, so a failure points at one action.
Callers follow main: a fix reaches every repository as soon as it is merged
here, and a change is only merged when every action's self-test is green. So
merging is the release.
Tags (v1.0.0, v1.0.1, ...) are immutable snapshots. A repository that needs a
hard guarantee can pin one. Do not move a tag.
A breaking change to an input must update its callers in the same round of MRs.