Skip to content

Commit 4d6bf70

Browse files
authored
ci: use OIDC role secret for OIDC role in workflows (#1062)
* ci: use OIDC role secret for OIDC role in workflows
1 parent 674f8c3 commit 4d6bf70

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
aws-region: us-east-1
2525
role-session-name: h2o-llmstudio-enterprise-ec2
26-
role-to-assume: arn:aws:iam::870498644798:role/GitHub-OIDC-Role
26+
role-to-assume: ${{ secrets.GH_OIDC_ROLE_LLM_STUDIO_ENTERPRISE }}
2727

2828
- name: Start EC2 runner
2929
id: start-ec2-runner
@@ -80,7 +80,7 @@ jobs:
8080
with:
8181
aws-region: us-east-1
8282
role-session-name: h2o-llmstudio-enterprise-ec2
83-
role-to-assume: arn:aws:iam::870498644798:role/GitHub-OIDC-Role
83+
role-to-assume: ${{ secrets.GH_OIDC_ROLE_LLM_STUDIO_ENTERPRISE }}
8484
- name: Stop EC2 runner
8585
uses: machulav/ec2-github-runner@v2.3.8
8686
with:

.github/workflows/test_ui.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
aws-region: us-east-1
2525
role-session-name: h2o-llmstudio-ec2
26-
role-to-assume: arn:aws:iam::870498644798:role/GitHub-OIDC-Role
26+
role-to-assume: ${{ secrets.GH_OIDC_ROLE_LLM_STUDIO_ENTERPRISE }}
2727

2828
- name: Start EC2 runner
2929
id: start-ec2-runner
@@ -80,11 +80,11 @@ jobs:
8080
with:
8181
aws-region: us-east-1
8282
role-session-name: h2o-llmstudio-ec2
83-
role-to-assume: arn:aws:iam::870498644798:role/GitHub-OIDC-Role
83+
role-to-assume: ${{ secrets.GH_OIDC_ROLE_LLM_STUDIO_ENTERPRISE }}
8484
- name: Stop EC2 runner
8585
uses: machulav/ec2-github-runner@v2.3.8
8686
with:
8787
mode: stop
8888
github-token: ${{ secrets.GH_RUNNER_PAT }}
8989
label: ${{ needs.start-runner.outputs.label }}
90-
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
90+
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}

0 commit comments

Comments
 (0)