Skip to content

Commit 61e1192

Browse files
committed
.github/workflows: fix check to skip integration test for PRs from forks
Check that the full name of the repo from pull request events matches the repo from the GitHub context to ensure we are properly skipping integration tests coming from forks. Updates #cleanup Signed-off-by: Mario Minardi <[email protected]>
1 parent 53acf82 commit 61e1192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# the bot does not have credentials for the integration testing tailnet.
2323
# TODO(mpminardi): revisit / remove this if / when we give dependabot a tailnet for
2424
# testing with a smaller blast radius.
25-
if: ${{ !github.event.repository.fork && github.actor != 'dependabot[bot]' }}
25+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
2626
name: ${{ matrix.os }} (${{ matrix.arch }}) (${{ matrix.credential-type }}) tailscale-${{ matrix.version }}
2727
strategy:
2828
fail-fast: false

0 commit comments

Comments
 (0)