From 5e5354fb7727e806b24e93f3f0668350ffcdffc3 Mon Sep 17 00:00:00 2001 From: Ryan Min <73128364+kcrmin@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:59:10 +0900 Subject: [PATCH 1/2] ci(go): read toolchain from go.mod Weekly govulncheck fails on stdlib advisories fixed after go1.26.6. Pin go1.26.11 once in cli/go.mod and point setup-go at it. --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/release.yml | 2 +- .github/workflows/security.yml | 4 ++-- cli/go.mod | 2 ++ 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7d92d3..7978480 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 with: - go-version: 1.26.6 + go-version-file: cli/go.mod cache-dependency-path: cli/go.sum - name: Unit and integration tests working-directory: cli @@ -82,7 +82,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 with: - go-version: 1.26.6 + go-version-file: cli/go.mod cache-dependency-path: cli/go.sum - name: Plugin, documentation, security, and strict-profile contracts env: @@ -125,7 +125,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 with: - go-version: 1.26.6 + go-version-file: cli/go.mod cache-dependency-path: cli/go.sum - name: Multi-repository service continuity scenario env: @@ -156,7 +156,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 with: - go-version: 1.26.6 + go-version-file: cli/go.mod cache-dependency-path: cli/go.sum - name: Build all supported targets without CGO shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7cb5d4..5329b30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: test "$(python3 -c 'import json; print(json.load(open(".codex-plugin/plugin.json"))["version"])')" = "${TAG#v}" - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 with: - go-version: 1.26.6 + go-version-file: cli/go.mod cache-dependency-path: cli/go.sum - name: Test exact source working-directory: cli diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 86583d8..f486c85 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -23,7 +23,7 @@ jobs: languages: go - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 with: - go-version: 1.26.6 + go-version-file: cli/go.mod cache-dependency-path: cli/go.sum - name: Build for CodeQL working-directory: cli @@ -44,7 +44,7 @@ jobs: persist-credentials: false - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 with: - go-version: 1.26.6 + go-version-file: cli/go.mod cache-dependency-path: cli/go.sum - name: Race tests working-directory: cli diff --git a/cli/go.mod b/cli/go.mod index 2fdc70d..3471489 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -2,6 +2,8 @@ module github.com/kcrmin/Stackcord/cli go 1.26.0 +toolchain go1.26.11 + require ( github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 github.com/spf13/cobra v1.10.2 From 0081580e54ce5d214f59d4422b42d468f6f1397e Mon Sep 17 00:00:00 2001 From: Ryan Min <73128364+kcrmin@users.noreply.github.com> Date: Wed, 11 Nov 2026 15:07:38 +0900 Subject: [PATCH 2/2] ci(native): move macos job to macos-15 GitHub retired the macos-14 image on 2026-11-02, so the macOS ARM64 job was rejected before it started. --- .github/workflows/ci.yml | 2 +- scripts/validate_ci_test.py | 2 +- scripts/validate_release_config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7978480..14c2154 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: matrix: include: - name: macOS ARM64 - os: macos-14 + os: macos-15 artifact: stackcord-darwin-arm64 extension: "" - name: Windows x64 diff --git a/scripts/validate_ci_test.py b/scripts/validate_ci_test.py index 2e521e6..141ddd7 100644 --- a/scripts/validate_ci_test.py +++ b/scripts/validate_ci_test.py @@ -29,7 +29,7 @@ def test_ci_runs_product_contract_and_dogfood_checks_without_model_calls(self): def test_pull_request_uses_two_representative_native_full_test_jobs(self): ci = (ROOT / ".github" / "workflows" / "ci.yml").read_text(encoding="utf-8") - for token in ("macos-14", "windows-2025"): + for token in ("macos-15", "windows-2025"): self.assertIn(token, ci) for token in ("macos-15-intel", "windows-11-arm"): self.assertNotIn(token, ci) diff --git a/scripts/validate_release_config.py b/scripts/validate_release_config.py index 92e3421..d58d5b5 100755 --- a/scripts/validate_release_config.py +++ b/scripts/validate_release_config.py @@ -36,7 +36,7 @@ def validate(root: pathlib.Path) -> list[str]: if not re.search(r"@[0-9a-f]{40}$", use): errors.append(f"GitHub Action is not commit-pinned: {path.name}: {use}") ci = (root / ".github" / "workflows" / "ci.yml").read_text(encoding="utf-8") if (root / ".github" / "workflows" / "ci.yml").exists() else "" - for label in ("macos-14", "windows-2025"): + for label in ("macos-15", "windows-2025"): if label not in ci: errors.append(f"representative native CI target missing: {label}") for label in ("macos-15-intel", "windows-11-arm"):