Skip to content

Commit 984b06d

Browse files
committed
chore(ci): Attempt to get Trusted CI workflow running when on a branch/PR that is not part of a fork
Signed-off-by: Paul Horton <[email protected]>
1 parent 146a5e3 commit 984b06d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-trusted.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ permissions:
2525

2626
jobs:
2727
sonatype:
28-
if: ${{ github.event_name == 'push' || (github.event.workflow_run.conclusion == 'success' && github.ref_name != 'main') }}
28+
if: ${{ github.event_name == 'push' || (github.event.workflow_run.conclusion == 'success' && github.ref_name != 'main' && github.event.workflow_run.head_repository.full_name == github.repository) }}
2929
name: Sonatype Scan
3030
runs-on: ubuntu-latest
3131
steps:
@@ -53,7 +53,7 @@ jobs:
5353

5454
# Run acceptance tests in a matrix with Terraform CLI versions
5555
test-parallel:
56-
if: ${{ github.event_name == 'push' || (github.event.workflow_run.conclusion == 'success' && github.ref_name != 'main') }}
56+
if: ${{ github.event_name == 'push' || (github.event.workflow_run.conclusion == 'success' && github.ref_name != 'main' && github.event.workflow_run.head_repository.full_name == github.repository) }}
5757
name: Acc. Tests (NXRM ${{ matrix.nxrm }} + TF ${{ matrix.terraform }})
5858
needs:
5959
- sonatype

0 commit comments

Comments
 (0)