Skip to content

Commit f096d48

Browse files
authored
GH-48142: [CI] Disallow scheduled GitHub Actions run on forked repos (#48143)
### Rationale for this change Closes #48142 Prevents Github workflows to periodically run on forked repos ### What changes are included in this PR? Add a gate to the two github workflows to prevent them from periodically running on forked repos. ### Are these changes tested? Yes, manually ### Are there any user-facing changes? No **This PR includes breaking changes to public APIs.** (If there are any breaking changes to public APIs, please explain which changes are breaking. If not, you can remove this.) **This PR contains a "Critical Fix".** (If the changes fix either (a) a security vulnerability, (b) a bug that caused incorrect or invalid data to be produced, or (c) a bug that causes a crash (even when the API contract is upheld), please provide explanation. If not, you can remove this.) * GitHub Issue: #48142 Authored-by: Kevin Liu <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 7c3d486 commit f096d48

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ permissions:
7979

8080
jobs:
8181
check-labels:
82+
if: github.event_name != 'schedule' || github.repository == 'apache/arrow'
8283
uses: ./.github/workflows/check_labels.yml
8384
secrets: inherit
8485
with:

.github/workflows/package_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ permissions:
6666

6767
jobs:
6868
check-labels:
69+
if: github.event_name != 'schedule' || github.repository == 'apache/arrow'
6970
uses: ./.github/workflows/check_labels.yml
7071
secrets: inherit
7172
with:

0 commit comments

Comments
 (0)