Skip to content

Commit 730e606

Browse files
committed
Update GitHub Actions workflows to use environment variables for S3 credentials
- Added environment variables TEST_S3_ACCESS_KEY_ID and TEST_S3_SECRET_ACCESS_KEY to multiple workflows for integration and smoke tests, allowing for optional overrides of AWS credentials. - Updated test scripts to utilize these environment variables when creating S3 secrets, enhancing flexibility and security in credential management.
1 parent d44ef9d commit 730e606

19 files changed

+58
-7
lines changed

.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ jobs:
235235
- name: Run smoke test
236236
id: smoketest
237237
timeout-minutes: 240
238+
env:
239+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
240+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
238241
run: |
239242
make int-test
240243
- name: Collect Test Logs

.github/workflows/arm-AL2023-int-test-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ jobs:
183183
cp /snap/bin/kustomize ./bin/kustomize
184184
- name: Run Integration test
185185
timeout-minutes: 240
186+
env:
187+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
188+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
186189
run: |
187190
make int-test
188191
- name: Collect Test Logs

.github/workflows/arm-RHEL-build-test-push-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ jobs:
183183
cp /snap/bin/kustomize ./bin/kustomize
184184
- name: Run Integration test
185185
timeout-minutes: 240
186+
env:
187+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
188+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
186189
run: |
187190
make int-test
188191
- name: Collect Test Logs

.github/workflows/arm-RHEL-int-test-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ jobs:
183183
cp /snap/bin/kustomize ./bin/kustomize
184184
- name: Run Integration test
185185
timeout-minutes: 240
186+
env:
187+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
188+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
186189
run: |
187190
make int-test
188191
- name: Collect Test Logs

.github/workflows/arm-Ubuntu-build-test-push-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ jobs:
235235
- name: Run smoke test
236236
id: smoketest
237237
timeout-minutes: 240
238+
env:
239+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
240+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
238241
run: |
239242
make int-test
240243
- name: Collect Test Logs

.github/workflows/arm-Ubuntu-int-test-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ jobs:
183183
cp /snap/bin/kustomize ./bin/kustomize
184184
- name: Run Integration test
185185
timeout-minutes: 240
186+
env:
187+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
188+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
186189
run: |
187190
make int-test
188191
- name: Collect Test Logs

.github/workflows/build-test-push-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ jobs:
290290
- name: Run smoke test
291291
id: smoketest
292292
timeout-minutes: 240
293+
env:
294+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
295+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
293296
run: |
294297
make int-test
295298
- name: Collect Test Logs

.github/workflows/distroless-build-test-push-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ jobs:
289289
- name: Run smoke test
290290
id: smoketest
291291
timeout-minutes: 240
292+
env:
293+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
294+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
292295
run: |
293296
make int-test
294297
- name: Collect Test Logs

.github/workflows/distroless-int-test-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ jobs:
182182
cp /snap/bin/kustomize ./bin/kustomize
183183
- name: Run Integration test
184184
timeout-minutes: 240
185+
env:
186+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
187+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
185188
run: |
186189
make int-test
187190
- name: Collect Test Logs

.github/workflows/helm-test-workflow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ jobs:
203203
AWS_S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
204204
TEST_S3_BUCKET: ${{ secrets.TEST_BUCKET }}
205205
TEST_VPC_ENDPOINT_URL: ${{ secrets.TEST_VPC_ENDPOINT_URL }}
206+
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
207+
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
206208
run: |
207209
kubectl kuttl test --config kuttl/kuttl-test-helm.yaml --report xml
208210
- name: Publish Results

0 commit comments

Comments
 (0)