Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/custard-run-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ jobs:
create-check-if: ${{ !!github.event.workflow_run }}

test:
if: needs.affected.outputs.paths != '[]'
# Guard: workflow_run fires for fork PRs but executes with repository secrets
# (id-token: write / GCP WIF). Restrict credential use to same-repo runs.
if: |
needs.affected.outputs.paths != '[]' &&
(github.event_name != 'workflow_run' || github.event.workflow_run.head_repository.full_name == github.repository)
needs: affected
runs-on: ubuntu-latest
timeout-minutes: 120 # 2 hours hard limit
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/custard-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ jobs:
status: failure

test:
if: needs.affected.outputs.paths != '[]'
# Guard: workflow_run fires for fork PRs but executes with repository secrets
# (id-token: write / GCP WIF). Restrict credential use to same-repo runs.
if: |
needs.affected.outputs.paths != '[]' &&
(github.event_name != 'workflow_run' || github.event.workflow_run.head_repository.full_name == github.repository)
needs: affected
runs-on: ubuntu-latest
timeout-minutes: 120 # 2 hours hard limit
Expand Down