No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-25 18:26:14 +00:00
.forgejo/workflows chore: added sync to company repos 2026-11-25 19:13:08 +01:00
_lib refactor(issue-lib): remove unused api_delete 2026-10-20 07:43:01 +02:00
create-pr Added create-pr action to test. 2026-05-11 15:37:11 +02:00
docker-cleanup Added a bunch of actions. 2026-05-11 15:51:28 +02:00
docker-login Added a bunch of actions. 2026-05-11 15:51:28 +02:00
docs docs(roadmap): mark P1-4 complete 2026-10-24 20:46:05 +02:00
issue-intake docs(adr): reference actions at @main 2026-10-19 15:06:50 +02:00
issue-sync feat: add milestone-sync, issue-sync, issue-intake actions 2026-07-15 15:16:53 +02:00
keys-cleanup Added a bunch of actions. 2026-05-11 15:51:28 +02:00
milestone-sync feat(milestone-sync): if a roadmap is removed for any reason, the sync missed this. Added a new step to handle it. 2026-08-09 11:04:14 +02:00
modules chore(modules): update to latest. 2026-11-25 19:21:54 +01:00
prepare-cosign Added a bunch of actions. 2026-05-11 15:51:28 +02:00
prepare-melange Added a bunch of actions. 2026-05-11 15:51:28 +02:00
prepare-repo fix(prepare-repo): fetch pinned submodules instead of running update.sh 2026-10-19 09:54:08 +02:00
prepare-ssh Added a bunch of actions. 2026-05-11 15:51:28 +02:00
prepare-ssh-signing Added a bunch of actions. 2026-05-11 15:51:28 +02:00
registry-helper feat(registry-helper): the script that points the clients at the credential helper 2026-11-25 19:10:54 +01:00
src feat(registry-helper): the script that points the clients at the credential helper 2026-11-25 19:10:54 +01:00
tests feat(registry-helper): the script that points the clients at the credential helper 2026-11-25 19:10:54 +01:00
.gitignore chore(init): initialised most of wulf-dev. 2026-10-18 13:48:48 +02:00
.gitmodules fix(modules): list the seed submodule in .gitmodules 2026-11-25 19:19:35 +01:00
AGENTS.md chore(init): initialised most of wulf-dev. 2026-10-18 13:48:48 +02:00
CLAUDE.md chore: added sync to company repos 2026-11-25 19:13:08 +01:00
initialise_modules.sh chore: added sync to company repos 2026-11-25 19:13:08 +01:00
README.md feat(registry-helper): the action, and its place in the README 2026-11-25 19:11:03 +01:00
SETUP.md chore: added sync to company repos 2026-11-25 19:13:08 +01:00
setup.sh chore: added sync to company repos 2026-11-25 19:13:08 +01:00
update.sh chore(init): initialised most of wulf-dev. 2026-10-18 13:48:48 +02:00

CI Actions

Custom composite actions for Forgejo Actions. Each is a folder with its own action.yml; how they are referenced is decided in ADR-002.

The repo uses the wulf-dev submodule for its setup and update scripts, its agent instructions and its company ADRs. The actions themselves do not call code from wulf-dev.

Repo checkout

prepare-repo

Fetches the consuming repo's submodules at the commits it pins (git submodule update --init --recursive) and trusts the Forgejo host key so that submodules can be cloned over SSH.

No inputs/outputs.

SSH / signing

prepare-ssh

Restores an SSH deploy/push key from inputs.ssh_key, writes it to ~/.ssh/id_ed25519, and exports GIT_SSH_COMMAND (via $GITHUB_ENV) pointed at it with host-key checking disabled. Use this when a workflow needs to git push as itself.

Inputs: ssh_key (required)

prepare-ssh-signing

Restores an SSH commit-signing key from inputs.signing_key, derives its public key, and writes a matching ~/.ssh/allowed_signers line for ci@wulf.science. Pairs with git config gpg.format ssh + gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers + user.signingkey ~/.ssh/signing_key.pub +commit.gpgsign true in the calling workflow (see issue-intake's "Commit issue file" step for the pattern).

Inputs: signing_key (required)

keys-cleanup

Removes the keys/ directory (used by prepare-cosign/prepare-melange below). Run with if: always() so it fires even if earlier steps failed. Does not clean up ~/.ssh/* from prepare-ssh/prepare-ssh-signing — those live outside keys/ and aren't touched by this action.

No inputs/outputs.

Docker / registry

docker-login

Logs into a registry using an ephemeral DOCKER_CONFIG directory (avoids touching the runner's real Docker config) and exports DOCKER_CONFIG via $GITHUB_ENV for subsequent steps.

Inputs: registry, username, token (all required)

registry-helper

Points docker, podman, crane and cosign at a credential helper that reads the registry credential from the environment, so that the credential is never written to a file. It makes a folder of its own with a config.json that names the helper docker-credential-env for one registry, and exports DOCKER_CONFIG (docker, crane and cosign), REGISTRY_AUTH_FILE (podman, which reads that file) and REGISTRY_SERVER (the helper serves this registry only) for the steps after it. The config.json holds no credential, and the action has no input for one.

The step that talks to the registry gets the credential as its own env:, not inside the text of a script, which the runner writes to a file:

- uses: https://forgejo.wulf.science/WulfScience-FOSS/ci-actions/registry-helper@main
  with:
    registry: forgejo.wulf.science
- name: Publish
  env:
    REGISTRY_USER: ${{ secrets.DOCKER_LOGIN_USER }}
    REGISTRY_TOKEN: ${{ secrets.DOCKER_LOGIN_TOKEN }}
  run: ./modules/scripts/publish.sh -m images/MANIFEST --arch amd64
- uses: https://forgejo.wulf.science/WulfScience-FOSS/ci-actions/docker-cleanup@main
  if: always()

The image of the job needs docker-credential-env (bin/docker_credential_env.sh of the shared scripts) on its PATH; the step fails, naming it, when it is not there. docker login and podman login do not work with this helper, by design. Use it instead of docker-login.

Inputs: registry (required)

docker-cleanup

Removes the ephemeral DOCKER_CONFIG directory created by docker-login or registry-helper, if set. Pair them, with cleanup on if: always().

No inputs/outputs.

Artifact signing key prep

prepare-cosign

Restores a cosign private key from inputs.cosign_key to keys/prod/cosign.key.

Inputs: cosign_key (required)

prepare-melange

Restores a base64-encoded melange signing key from inputs.melange_key to keys/prod/melange.rsa.

Inputs: melange_key (required)

Both of these are cleaned up by keys-cleanup (they write under keys/).

Pull requests

create-pr

Creates a PR and immediately attempts to merge it, without waiting for checks — see its own TODO comment. That's the right behavior for automated deploy pipelines where the PR is a formality/audit trail rather than a real review gate, and the wrong behavior anywhere a human needs to review before it becomes canonical.

Do not use create-pr for anything that needs review-before-merge. issue-intake (below) needed exactly that and creates its PR with a direct API call instead of reusing this action — see its action.yml for the pattern to copy if you hit the same need elsewhere.

Inputs: description, head, repository, title, token (all required) Outputs: pr_number

Issue-tracker-as-code

Three actions implementing the repo-as-source-of-truth issue/milestone system (originally built in the services repo, consolidated here so it isn't duplicated per-repo). All three share _lib/issue-lib.sh (not an action itself — internal helpers only, sourced via ${{ github.action_path }}/../_lib/issue-lib.sh). They operate on the consuming repo's checkout, not on ci-actions itself.

Consuming-repo conventions these assume:

  • docs/roadmap/phase-*.md files with a ## Phase Gate Checklist section, items formatted - [ ] P<N>-<M> <description>.
  • issues/NNNN.yaml files, one per issue, linked to their Forgejo counterpart only by a [#NNNN] tag in the Forgejo issue title.

milestone-sync

Syncs Forgejo milestones + issues from docs/roadmap/phase-*.md checklists. Idempotent. Typically run on PR-merge-to-main.

Inputs: token, owner, repo (required); pr_number, dry_run (optional)

issue-sync

Forward sync: projects issues/NNNN.yaml files into Forgejo issues. The repo is the source of truth — this overwrites any divergent UI state. Only ever touches [#NNNN]-tagged issues. Typically run on push to main.

Inputs: token, owner, repo (required); dry_run (optional)

issue-intake

Reverse sync: records a Forgejo UI issue event (opened/edited/closed) as an issues/NNNN.yaml file, commits it to a per-issue branch (chore/issues-intake--NNNN, signed as ci@wulf.science), and opens a PR — never pushed to main, so a UI-originated issue is always reviewed before becoming canonical. Internally chains prepare-ssh + prepare-ssh-signing

  • its own direct PR-creation call (not create-pr — see above) + keys-cleanup.

Inputs: token, owner, repo, ssh_key, signing_ssh_key, pr_token (all required) Outputs: changed, id