Skip to content

ci: push devenv closure to Attic on rigel-release (RIG-9652) - #14

Draft
rigel-mintaka wants to merge 2 commits into
rigel-releasefrom
ci-pipelines/rig-9652-push-devenv-closure-to-attic-on-main
Draft

rigel-mintaka wants to merge 2 commits into
rigel-releasefrom
ci-pipelines/rig-9652-push-devenv-closure-to-attic-on-main

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Nov 18, 2026 •

Copy link
Copy Markdown

What does this do

Adds an attic-push job to .github/workflows/rigel-ci.yml. It calls the reusable attic-push.yml from RigelBuild/.github and pushes the .#devenv closure to the private forks Attic cache.

The job runs on push to rigel-release only. It is gated on github.event_name == 'push', so a pull_request run never reaches it and fork PRs never receive the secrets. It runs after the CI job.

Why do we need it

RIG-9652. The devenv closure built on GitHub Actions should reach Attic, so hosts can substitute it. Without this caller nothing pushes the closure.

This PR merges after the .github PR, RigelBuild/.github#2. The @main pin resolves only once that PR is on main.

The secrets TS_OAUTH_CLIENT_ID, TS_OAUTH_SECRET and ATTIC_PUSH_TOKEN wait on RIG-10216 and RIG-10509. Until they exist, the reusable job skips with a notice and this check stays green. Nothing is built or pushed.

Summary

  • rigel-ci.yml: new job attic-push. needs: [CI], if: github.event_name == 'push'.
  • Passes the three secrets through. Passes attrs: .#devenv and cache: forks.
  • The existing CI job is unchanged, so the branch-protection check name stays the same.

Verification

  • actionlint .github/workflows/rigel-ci.yml: exit 0.
  • Not run end to end. The secrets do not exist yet, so the push path is untested.

Risks

  • The job pins @main on a workflow in another repo. A change to that file reaches this caller without a PR here.
  • A push to rigel-release now runs one extra job. It does nothing until the secrets exist.

Spec-impact: none.

Checks skipped: no pre-push hook configured for RigelBuild/devenv rigel-release caller; RIG-10107 no-hook profile

Refs RIG-9652

Co-authored-by: Matt Wilkinson matt@rigel.build

rigel-mintaka and others added 2 commits November 18, 2026 15:47
Co-authored-by: Matt Wilkinson <matt@rigel.build>
Adds an attic-push job that calls the reusable workflow in RigelBuild/.github.

Runs on push events only, so pull_request runs never receive the secrets.
Until RIG-10216 and RIG-10509 provision the secrets, the reusable job skips with a notice.

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka rigel-mintaka changed the title ci: push devenv closure to Attic on main (RIG-9652) ci: push devenv closure to Attic on rigel-release (RIG-9652) Nov 18, 2026
@linear-code

linear-code Bot commented Nov 18, 2026

Copy link
Copy Markdown

RIG-9652

@rigel-mintaka
rigel-mintaka marked this pull request as draft November 18, 2026 21:16
@rigel-mintaka

Copy link
Copy Markdown
Author

Hold: waiting on Matt's RIG-10781 decision. Review r1 found 3 high, 5 medium and 1 low; the main ones:

  • F1: fleet hosts trust only the orion cache, so pushed forks paths can't be used.
  • F2: a missing secret produces a green no-op.
  • F3: oh-my-pi nix.yml is disabled.

If Matt picks A (remove tag:gha-fork), these PRs close. If he picks B, they get the review fixes first.

@rigel-mintaka

Copy link
Copy Markdown
Author

Attic push is not ported: nebula has no root workflow that runs or includes forks/devenv/.github/workflows/rigel-ci.yml. GitHub only reads the repo-root .github/workflows, so a port would not run. The Attic push needs a nebula root workflow and stays under RIG-9652. Leaving this PR open for that.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant