From b7d8dce69a187244be09e35bcf308d8e6738f3f2 Mon Sep 17 00:00:00 2001 From: Rahul Varghese Date: Tue, 29 Sep 2026 23:15:13 +0530 Subject: [PATCH] ci: activate the catalog verify and release workflows Moves verify.yml and release.yml out of pending-workflows (the scaffolding token lacked the workflow scope) and pins orun v2.69.0. The v0.1.0 tag on the merge publishes oci://ghcr.io/sourceplane/stack-granite:0.1.0, which sourceplane/nimbus-runners pins (NR1). Co-Authored-By: Claude Opus 5.5 --- .github/pending-workflows/README.md | 48 ------------------- .../release.yml | 4 +- .../verify.yml | 4 +- 3 files changed, 6 insertions(+), 50 deletions(-) delete mode 100644 .github/pending-workflows/README.md rename .github/{pending-workflows => workflows}/release.yml (96%) rename .github/{pending-workflows => workflows}/verify.yml (91%) diff --git a/.github/pending-workflows/README.md b/.github/pending-workflows/README.md deleted file mode 100644 index f227611..0000000 --- a/.github/pending-workflows/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# Pending workflows - -These are the finished catalog workflows. GitHub refuses a push that creates -anything under `.github/workflows/` unless the pushing token carries the -`workflow` OAuth scope, and the account this repo was scaffolded from does not -have it. They live here so they are versioned and reviewable. - -| File | What it does | -|------|--------------| -| `verify.yml` | Runs `scripts/verify.sh` on every PR and on `main` — the catalog gate. | -| `release.yml` | On a `v*` tag: asserts the tag matches `stack.yaml`'s version, runs the gate, creates the GitHub release, publishes the OCI artifact to `ghcr.io/sourceplane/stack-granite`, and pulls it back to confirm it resolves. | - -## Activating them - -In an interactive terminal: - -```bash -gh auth refresh -h github.com -s workflow -s write:packages -``` - -Then here: - -```bash -mkdir -p .github/workflows -git mv .github/pending-workflows/verify.yml .github/workflows/verify.yml -git mv .github/pending-workflows/release.yml .github/workflows/release.yml -git rm .github/pending-workflows/README.md -git commit -m "ci: activate the catalog verify and release workflows" -git push -git tag v0.1.0 && git push origin v0.1.0 -``` - -The tag push is what publishes `oci://ghcr.io/sourceplane/stack-granite:0.1.0`, -which [`sourceplane/cumulus`](https://github.com/sourceplane/cumulus) pins in -its `intent.yaml`. Nothing in cumulus's CI can resolve until that artifact -exists. - -`write:packages` is needed because `orun publish` pushes to GHCR. In CI the -workflow's own `GITHUB_TOKEN` carries `packages: write`, so once `release.yml` -is live the scope is only needed for a manual local publish. - -## Verifying without CI - -The gate itself needs no special scope and runs locally today: - -```bash -./scripts/verify.sh -``` diff --git a/.github/pending-workflows/release.yml b/.github/workflows/release.yml similarity index 96% rename from .github/pending-workflows/release.yml rename to .github/workflows/release.yml index 20abfd2..b5e5b3c 100644 --- a/.github/pending-workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,9 @@ jobs: fetch-depth: 0 - name: Setup Orun - uses: sourceplane/orun-action@v1.1.0 + uses: sourceplane/orun-action@v1.2.0 + with: + version: v2.69.0 - name: Make helper scripts executable run: chmod +x scripts/*.sh diff --git a/.github/pending-workflows/verify.yml b/.github/workflows/verify.yml similarity index 91% rename from .github/pending-workflows/verify.yml rename to .github/workflows/verify.yml index 37fc681..bea3530 100644 --- a/.github/pending-workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -27,7 +27,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Setup Orun - uses: sourceplane/orun-action@v1.1.0 + uses: sourceplane/orun-action@v1.2.0 + with: + version: v2.69.0 - name: Make helper scripts executable run: chmod +x scripts/*.sh