From e3b3e7c4d7aae23f517b6029af56df360d40edf1 Mon Sep 17 00:00:00 2001 From: James Cox Date: Thu, 19 Mar 2026 18:50:00 -0500 Subject: [PATCH] fix(ci): forward checks permission to reusable test jobs - Workflow callers: - grant `contents: read` and `checks: write` when invoking the reusable test suite from CI validation, nightly builds, and main release automation - align caller permissions with the nested `backend-tests` and `frontend-tests` jobs so GitHub accepts the workflow graph - Validation: - keep workflow YAML parsing clean after the permission wiring change - keep `git diff --check` clean for the touched workflow files --- .github/workflows/ci-validate.yml | 3 +++ .github/workflows/publish-nightly.yml | 3 +++ .github/workflows/release-main.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/ci-validate.yml b/.github/workflows/ci-validate.yml index 1aea39264..10a64ae31 100644 --- a/.github/workflows/ci-validate.yml +++ b/.github/workflows/ci-validate.yml @@ -24,6 +24,9 @@ jobs: if: ${{ (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')) && (needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped') }} needs: [migration-check] uses: ./.github/workflows/test-suite.yml + permissions: + contents: read + checks: write with: checkout_ref: ${{ github.sha }} diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 65e3feccf..28bee1e41 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -29,6 +29,9 @@ jobs: name: Test Suite needs: [resolve_ref] uses: ./.github/workflows/test-suite.yml + permissions: + contents: read + checks: write with: checkout_ref: ${{ needs.resolve_ref.outputs.commit_sha }} diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index 725896f95..97f079c55 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -24,6 +24,9 @@ jobs: if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} needs: [migration-check] uses: ./.github/workflows/test-suite.yml + permissions: + contents: read + checks: write with: checkout_ref: ${{ github.sha }}