Skip to content

Commit a6344e0

Browse files
committed
Update workflow to use inputs to local action
1 parent 94b9bbe commit a6344e0

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.github/workflows/actions/test-monitor-process-results/action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ name: Test Monitor - Process Results
22

33
description: Custom action that's used in multiple Flaky Test Monitor jobs to process test results and upload them to BigQuery
44

5+
inputs:
6+
service_account:
7+
description: 'The GCP Service Account'
8+
required: true
9+
workload_identity_provider:
10+
description: 'The GCP Workload Identity Provider'
11+
required: true
12+
513
runs:
614
using : "composite"
715
steps:
@@ -23,9 +31,9 @@ runs:
2331
id: auth
2432
uses: google-github-actions/auth@v2
2533
with:
34+
service_account: ${{ inputs.service_account }}
2635
token_format: 'access_token'
27-
workload_identity_provider: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}
28-
service_account: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
36+
workload_identity_provider: ${{ inputs.workload_identity_provider }}
2937
- name: Upload results to BigQuery (skipped tests)
3038
uses: nick-fields/retry@v2
3139
with:

.github/workflows/flaky-test-monitor.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ jobs:
7474
env:
7575
TEST_CATEGORY: unit
7676
uses: ./.github/workflows/actions/test-monitor-process-results
77-
secrets:
78-
FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}
79-
FLAKY_TEST_SERVICE_ACCOUNT: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
77+
with:
78+
service_account: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
79+
workload_identity_provider: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}
8080

8181
unit-test-modules:
8282
name: Unit Tests (Modules)
@@ -117,9 +117,9 @@ jobs:
117117
env:
118118
TEST_CATEGORY: ${{ matrix.test_category }}
119119
uses: ./.github/workflows/actions/test-monitor-process-results
120-
secrets:
121-
FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}
122-
FLAKY_TEST_SERVICE_ACCOUNT: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
120+
with:
121+
service_account: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
122+
workload_identity_provider: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}
123123

124124
integration-test:
125125
name: Integration Tests
@@ -178,7 +178,7 @@ jobs:
178178
env:
179179
TEST_CATEGORY: ${{ matrix.test_category }}
180180
uses: ./.github/workflows/actions/test-monitor-process-results
181-
secrets:
182-
FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}
183-
FLAKY_TEST_SERVICE_ACCOUNT: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
181+
with:
182+
service_account: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
183+
workload_identity_provider: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}
184184

0 commit comments

Comments
 (0)