Skip to content

Commit 63747b7

Browse files
authored
[chore][functional test v2] Skip credential tests on dependabot PRs (#2236)
* [chore][functional test v2] Don't run tests requiring credentials on dependabot PRs * use PR author instead of actor starting job
1 parent 4dc6c02 commit 63747b7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/functional_test_v2.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
eks-test:
107107
name: Test helm install in EKS - credentials needed
108108
if: |
109-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
109+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
110110
(github.ref == 'refs/heads/main')
111111
env:
112112
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks
@@ -140,7 +140,7 @@ jobs:
140140
eks-upgrade-test:
141141
name: Test helm upgrade in EKS - credentials needed
142142
if: |
143-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
143+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
144144
(github.ref == 'refs/heads/main')
145145
env:
146146
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks
@@ -181,7 +181,7 @@ jobs:
181181
gke-autopilot-test:
182182
name: Test helm install in GKE/Autopilot - credentials needed
183183
if: |
184-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
184+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
185185
(github.ref == 'refs/heads/main')
186186
env:
187187
KUBE_TEST_ENV: gke/autopilot
@@ -217,7 +217,7 @@ jobs:
217217
gke-autopilot-upgrade-test:
218218
name: Test helm upgrade in GKE/Autopilot - credentials needed
219219
if: |
220-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
220+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
221221
(github.ref == 'refs/heads/main')
222222
env:
223223
KUBE_TEST_ENV: gke/autopilot
@@ -261,7 +261,7 @@ jobs:
261261
aks-windows-test:
262262
name: Test helm install in AKS - credentials needed
263263
if: |
264-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
264+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
265265
(github.ref == 'refs/heads/main')
266266
env:
267267
KUBE_TEST_ENV: aks
@@ -298,7 +298,7 @@ jobs:
298298
gce-autopilot-test:
299299
name: Test helm install in GCE (kops) - credentials needed
300300
if: |
301-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
301+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
302302
(github.ref == 'refs/heads/main')
303303
env:
304304
KUBE_TEST_ENV: gce
@@ -328,7 +328,7 @@ jobs:
328328
eks-fargate-test:
329329
name: Test helm install in EKS Fargate - credentials needed
330330
if: |
331-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
331+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
332332
(github.ref == 'refs/heads/main')
333333
env:
334334
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks-fargate
@@ -363,7 +363,7 @@ jobs:
363363
eks-fargate-upgrade-test:
364364
name: Test helm upgrade in EKS Fargate - credentials needed
365365
if: |
366-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
366+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
367367
(github.ref == 'refs/heads/main')
368368
env:
369369
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks-fargate
@@ -405,7 +405,7 @@ jobs:
405405
eks-auto-mode-test:
406406
name: Test helm install in EKS Auto Mode - credentials needed
407407
if: |
408-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
408+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
409409
(github.ref == 'refs/heads/main')
410410
env:
411411
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks-auto-mode
@@ -439,7 +439,7 @@ jobs:
439439
eks-auto-mode-upgrade-test:
440440
name: Test helm upgrade in EKS Auto Mode - credentials needed
441441
if: |
442-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
442+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
443443
(github.ref == 'refs/heads/main')
444444
env:
445445
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks-auto-mode
@@ -480,7 +480,7 @@ jobs:
480480
gke-test:
481481
name: Test helm install in GKE - credentials needed
482482
if: |
483-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
483+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
484484
(github.ref == 'refs/heads/main')
485485
env:
486486
KUBE_TEST_ENV: gke
@@ -516,7 +516,7 @@ jobs:
516516
gke-upgrade-test:
517517
name: Test helm upgrade in GKE - credentials needed
518518
if: |
519-
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
519+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]') ||
520520
(github.ref == 'refs/heads/main')
521521
env:
522522
KUBE_TEST_ENV: gke

0 commit comments

Comments
 (0)