Skip to content

Commit 4a9b344

Browse files
authored
Restrict OCP self-hosted PR runners (redhat-best-practices-for-k8s#2437)
1 parent bb12603 commit 4a9b344

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/qe-ocp-arm-416.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env:
2323

2424
jobs:
2525
build-arm-image-for-qe:
26+
if: github.event.pull_request.user.login!='dependabot[bot]'
2627
runs-on: qe-ocp-arm1
2728
steps:
2829
- name: Check out code
@@ -52,7 +53,7 @@ jobs:
5253
qe-ocp-arm-testing:
5354
runs-on: qe-ocp-arm1
5455
needs: build-arm-image-for-qe
55-
if: needs.build-arm-image-for-qe.result == 'success'
56+
if: needs.build-arm-image-for-qe.result == 'success' && github.event.pull_request.user.login!='dependabot[bot]'
5657
strategy:
5758
fail-fast: false
5859
matrix:

.github/workflows/qe-ocp-pre-main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
# Build the image used for testing first, then pass the reference to the QE tests.
2222
# This saves time and resources by not building the image in each QE suite.
2323
build-image-for-qe:
24+
if: github.event.pull_request.user.login!='dependabot[bot]'
2425
runs-on: ubuntu-22.04
2526
steps:
2627
- name: Check out code
@@ -49,7 +50,7 @@ jobs:
4950
qe-ocp-testing:
5051
runs-on: qe-ocp-416
5152
needs: build-image-for-qe
52-
if: needs.build-image-for-qe.result == 'success'
53+
if: needs.build-image-for-qe.result == 'success' && github.event.pull_request.user.login!='dependabot[bot]'
5354
strategy:
5455
fail-fast: false
5556
matrix:

0 commit comments

Comments
 (0)