I4: Pin third-party actions and mirror them to Gitea #46

Open
opened 2026-11-09 17:06:00 +00:00 by claude · 3 comments
Member

Workflows use floating tags from github.com, so CI depends on GitHub and on upstream tags not changing.

Work

  • Inventory every uses: across repos with workflows.
  • Pin each to a commit SHA, with the version in a comment.
  • Eric: create a mirror org or repos (claude can't create repos in DevOps), then point DEFAULT_ACTIONS_URL at Gitea, or use full URLs.

Acceptance

  • No floating action references remain in repos covered by this roadmap.
  • CI still runs during a simulated github.com outage for the mirrored actions.
Workflows use floating tags from github.com, so CI depends on GitHub and on upstream tags not changing. **Work** - Inventory every `uses:` across repos with workflows. - Pin each to a commit SHA, with the version in a comment. - Eric: create a mirror org or repos (`claude` can't create repos in DevOps), then point `DEFAULT_ACTIONS_URL` at Gitea, or use full URLs. **Acceptance** - No floating action references remain in repos covered by this roadmap. - CI still runs during a simulated github.com outage for the mirrored actions.
claude added this to the CI/CD 1: Runner policy and isolation milestone 2026-11-09 17:06:00 +00:00
claude added the cicdneeds-eric
priority
high
labels 2026-11-09 17:06:00 +00:00
claude added this to the CI/CD Roadmap project 2026-11-09 17:07:33 +00:00
Owner

Can you do the inventory of every uses: across repos with workflows and tell me what you need mirrors of?

Can you do the inventory of every `uses:` across repos with workflows and tell me what you need mirrors of?
Author
Member

Inventory done. Short answer: today only one action needs a mirror, actions/checkout. The full list is in docs/ci-cd/actions-inventory.md (d359af3).

How I built it: I cloned the default branch of all 72 repos under DevOps, Gaming and claude that claude can read, and pulled every uses: line out of .gitea/ and .github/ workflow files. Ten repos have workflows. I matched them against each repo's Actions run history to see which ones really run here. Gitea 1.27 reads .gitea/workflows/ when it exists and falls back to .github/workflows/ only when it doesn't.

Workflows that run here, and what they use

Repo Actions
DevOps/software-infrastructure (deployLibvirt.yaml) actions/checkout, dawidd6/action-ansible-playbook
DevOps/ansible-role-gitea, Gaming/ashlar, Gaming/luanti_game_strata, claude/vitals actions/checkout only
DevOps/helm-pixelfed (upstream fork) tibdex/github-app-token, renovatebot/github-action, azure/setup-helm, helm/chart-testing-action, helm/kind-action, jessebot/helm-docs-action, helm/chart-releaser-action, actions/checkout

Four repos (ansible-role-nvidia-driver, truecharts, luanti_mod_3d_armor_minimized, luanti-wasm) have upstream GitHub workflows that have never run here. Ashlar's .github/ workflows are ignored because it has a .gitea/ directory.

What I need mirrored

  1. actions/checkout: yes. It's used by every in-scope workflow.
  2. dawidd6/action-ansible-playbook: no. D7 (#75) can run ansible-playbook directly from the CI tools image (G1).
  3. Everything in helm-pixelfed: no. See below.
  4. Later, decided when each issue comes up: actions/cache for G8, maybe the docker/* actions for P2. Plain docker buildx in a run: step avoids that mirror. The doc keeps this list.

Suggested setup: an org such as actions-mirror with a pull mirror of https://github.com/actions/checkout. Then either set [actions] DEFAULT_ACTIONS_URL = self in the role, so actions/checkout resolves on Gitea (that's an app.ini change, and applying it restarts Gitea), or keep the default and use full URLs in workflows. Recommendation: DEFAULT_ACTIONS_URL = self, so short uses: names stop depending on github.com. Any action that isn't mirrored would then fail to resolve, and that's what we want. Tell me the org name once it exists, and I'll write the role change and run the outage test from a cicd-test-* repo.

Needs a decision: DevOps/helm-pixelfed. It's a fork with upstream's GitHub workflows and no .gitea/ directory, so Gitea runs them. Its Renovate workflow runs every hour on the shared runner and has failed every time (195 runs so far, latest at 23:00 UTC today), because it needs a GitHub App that doesn't exist here. That's one wasted job slot per hour. Recommendation: disable those workflows in that repo's Actions tab (or turn off the Actions unit for the repo). That repo isn't covered by this roadmap, so I haven't changed it.

Pinned in this run (SHA plus version comment):

  • deployLibvirt.yaml: actions/checkout v4.4.0 and dawidd6/action-ansible-playbook v2.8.0 (d359af3).
  • ansible-role-gitea demo.yaml: actions/checkout v4.4.0 (DevOps/ansible-role-gitea@a4a75d8, bumped in aebcd1e).
  • Checked with actionlint 1.7.7 in a container. It reports only problems that were already there (the gitea.* context, which is valid on Gitea, and deployLibvirt.yaml having no on: trigger, which is D7's job).

Still floating: actions/checkout@v4 in Gaming/ashlar, Gaming/luanti_game_strata and claude/vitals. I'll pin those under G10, with each owning task's agreement, since a pin now will still match once the mirror exists.

Why this stays open: the acceptance criteria need the mirror and an outage test. needs-eric stays for the mirror org and the helm-pixelfed decision.

— eom-cicd-roadmap

**Inventory done. Short answer: today only one action needs a mirror, `actions/checkout`.** The full list is in `docs/ci-cd/actions-inventory.md` (d359af3). **How I built it:** I cloned the default branch of all 72 repos under DevOps, Gaming and `claude` that `claude` can read, and pulled every `uses:` line out of `.gitea/` and `.github/` workflow files. Ten repos have workflows. I matched them against each repo's Actions run history to see which ones really run here. Gitea 1.27 reads `.gitea/workflows/` when it exists and falls back to `.github/workflows/` only when it doesn't. **Workflows that run here, and what they use** | Repo | Actions | |---|---| | DevOps/software-infrastructure (`deployLibvirt.yaml`) | `actions/checkout`, `dawidd6/action-ansible-playbook` | | DevOps/ansible-role-gitea, Gaming/ashlar, Gaming/luanti_game_strata, claude/vitals | `actions/checkout` only | | DevOps/helm-pixelfed (upstream fork) | `tibdex/github-app-token`, `renovatebot/github-action`, `azure/setup-helm`, `helm/chart-testing-action`, `helm/kind-action`, `jessebot/helm-docs-action`, `helm/chart-releaser-action`, `actions/checkout` | Four repos (ansible-role-nvidia-driver, truecharts, luanti_mod_3d_armor_minimized, luanti-wasm) have upstream GitHub workflows that have never run here. Ashlar's `.github/` workflows are ignored because it has a `.gitea/` directory. **What I need mirrored** 1. **`actions/checkout`**: yes. It's used by every in-scope workflow. 2. `dawidd6/action-ansible-playbook`: no. D7 (#75) can run `ansible-playbook` directly from the CI tools image (G1). 3. Everything in `helm-pixelfed`: no. See below. 4. Later, decided when each issue comes up: `actions/cache` for G8, maybe the `docker/*` actions for P2. Plain `docker buildx` in a `run:` step avoids that mirror. The doc keeps this list. **Suggested setup:** an org such as `actions-mirror` with a pull mirror of `https://github.com/actions/checkout`. Then either set `[actions] DEFAULT_ACTIONS_URL = self` in the role, so `actions/checkout` resolves on Gitea (that's an `app.ini` change, and applying it restarts Gitea), or keep the default and use full URLs in workflows. **Recommendation: `DEFAULT_ACTIONS_URL = self`**, so short `uses:` names stop depending on github.com. Any action that isn't mirrored would then fail to resolve, and that's what we want. Tell me the org name once it exists, and I'll write the role change and run the outage test from a `cicd-test-*` repo. **Needs a decision: `DevOps/helm-pixelfed`.** It's a fork with upstream's GitHub workflows and no `.gitea/` directory, so Gitea runs them. Its Renovate workflow runs **every hour on the shared runner and has failed every time** (195 runs so far, latest at 23:00 UTC today), because it needs a GitHub App that doesn't exist here. That's one wasted job slot per hour. **Recommendation:** disable those workflows in that repo's Actions tab (or turn off the Actions unit for the repo). That repo isn't covered by this roadmap, so I haven't changed it. **Pinned in this run** (SHA plus version comment): - `deployLibvirt.yaml`: `actions/checkout` v4.4.0 and `dawidd6/action-ansible-playbook` v2.8.0 (d359af3). - `ansible-role-gitea` `demo.yaml`: `actions/checkout` v4.4.0 (DevOps/ansible-role-gitea@a4a75d8, bumped in aebcd1e). - Checked with `actionlint` 1.7.7 in a container. It reports only problems that were already there (the `gitea.*` context, which is valid on Gitea, and `deployLibvirt.yaml` having no `on:` trigger, which is D7's job). **Still floating:** `actions/checkout@v4` in Gaming/ashlar, Gaming/luanti_game_strata and claude/vitals. I'll pin those under G10, with each owning task's agreement, since a pin now will still match once the mirror exists. **Why this stays open:** the acceptance criteria need the mirror and an outage test. `needs-eric` stays for the mirror org and the `helm-pixelfed` decision. — eom-cicd-roadmap
Author
Member

Follow-up: the SHA pin works on the live runner. ansible-role-gitea's demo workflow ran on both of today's pushes (a4a75d8 and b5764c7), and both passed, including the pinned actions/checkout step.

— eom-cicd-roadmap

Follow-up: the SHA pin works on the live runner. `ansible-role-gitea`'s demo workflow ran on both of today's pushes (a4a75d8 and b5764c7), and both passed, including the pinned `actions/checkout` step. — eom-cicd-roadmap
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DevOps/software-infrastructure#46