Shared reusable Forgejo Actions workflows
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .renovaterc.json | ||
| README.md | ||
forgejo-workflows
Shared reusable Forgejo Actions workflows for the repos on git.dcunha.io.
Each consuming repo keeps a thin caller in .forgejo/workflows/ that owns the triggers and
concurrency, and calls a workflow here by commit:
on:
pull_request:
jobs:
labeler:
uses: Exikle/forgejo-workflows/.forgejo/workflows/labeler.yaml@<sha>
secrets: inherit
- Pin by commit, never
@main. Renovate bumps the pin through theforgejo-workflowsmanager inexikle/renovate-config. Those pin bumps are grouped into one PR per repo and merge on their own, so a change merged here reaches every caller without a second review. - Omit
runs-onon the calling job so Forgejo expands the called jobs into the run. secrets: inheritpasses the caller's secrets through; nothing here holds a secret, which is why this repo can be public — Forgejo only resolves reusable workflows from public repos.- Inside a called workflow,
forgejo.event,forgejo.repositoryandactions/checkoutall refer to the calling repo.
Workflows
| Workflow | Does | Inputs |
|---|---|---|
labeler.yaml |
Labels a pull request | none |
labels-sync.yaml |
Syncs the repo's labels | none |
oci-push.yaml |
Pushes, signs and verifies a Flux artifact, then pings Flux | registry-host, forgejo-oci-url, registry-oci-url, path |
container-pull-request.yaml |
Lints, and builds the apps a pull request changed | none |
container-release.yaml |
Builds, pushes and signs the apps a push changed | event-name, app, release, no-cache |
container-deprecate.yaml |
Opens and merges a PR that removes an app | app, reason |
container-vulnerability-scan.yaml |
Scans every published image with grype | severity |
Only oci-push.yaml, labeler.yaml and labels-sync.yaml serve more than one repo. The container-* workflows serve Exikle/containers only; they live here so that repo
keeps thin callers. grep -rn 'forgejo-workflows/' .forgejo/workflows in a repo shows what it
calls.