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
This commit is contained in:
James Cox
2026-03-19 18:50:00 -05:00
parent 1bc45da013
commit e3b3e7c4d7
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -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') }} 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] needs: [migration-check]
uses: ./.github/workflows/test-suite.yml uses: ./.github/workflows/test-suite.yml
permissions:
contents: read
checks: write
with: with:
checkout_ref: ${{ github.sha }} checkout_ref: ${{ github.sha }}
+3
View File
@@ -29,6 +29,9 @@ jobs:
name: Test Suite name: Test Suite
needs: [resolve_ref] needs: [resolve_ref]
uses: ./.github/workflows/test-suite.yml uses: ./.github/workflows/test-suite.yml
permissions:
contents: read
checks: write
with: with:
checkout_ref: ${{ needs.resolve_ref.outputs.commit_sha }} checkout_ref: ${{ needs.resolve_ref.outputs.commit_sha }}
+3
View File
@@ -24,6 +24,9 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
needs: [migration-check] needs: [migration-check]
uses: ./.github/workflows/test-suite.yml uses: ./.github/workflows/test-suite.yml
permissions:
contents: read
checks: write
with: with:
checkout_ref: ${{ github.sha }} checkout_ref: ${{ github.sha }}