Skip to content

Commit e58d7ae

Browse files
authored
Merge branch 'main' into code_cov
2 parents 3ef0060 + 23516c0 commit e58d7ae

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/acceptance.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ concurrency:
2020

2121
jobs:
2222
integration:
23-
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
23+
# Only run this job for PRs from branches on the main repository and not from forks.
24+
# Workflows triggered by PRs from forks don't have access to the tool environment.
25+
# PRs from forks to be tested by the reviewer(s) / maintainer(s) before merging.
26+
if: github.event_name == 'pull_request' && !github.event.pull_request.draft && !github.event.pull_request.head.repo.fork
2427
environment: tool
2528
runs-on: larger
2629
steps:
@@ -59,7 +62,10 @@ jobs:
5962
use_oidc: true
6063

6164
serverless_integration:
62-
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
65+
# Only run this job for PRs from branches on the main repository and not from forks.
66+
# Workflows triggered by PRs from forks don't have access to the tool environment.
67+
# PRs from forks to be tested by the reviewer(s) / maintainer(s) before merging.
68+
if: github.event_name == 'pull_request' && !github.event.pull_request.draft && !github.event.pull_request.head.repo.fork
6369
environment: tool
6470
runs-on: larger
6571
env:

0 commit comments

Comments
 (0)