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:
@@ -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 }}
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user