fix: update workflow action to user var instead of secret
This commit is contained in:
6
.github/workflows/aws-genai-cicd-suite.yml
vendored
6
.github/workflows/aws-genai-cicd-suite.yml
vendored
@@ -12,6 +12,8 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
review:
|
review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: AWS_ROLE_TO_ASSUME
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# read repository contents and write pull request comments
|
# read repository contents and write pull request comments
|
||||||
id-token: write
|
id-token: write
|
||||||
@@ -53,8 +55,8 @@ jobs:
|
|||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
with:
|
with:
|
||||||
# using repository secret to get the role arn
|
# using repository environment variable to get the role arn
|
||||||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME_VAR }}
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
- name: Intelligent GitHub Actions
|
- name: Intelligent GitHub Actions
|
||||||
|
|||||||
Reference in New Issue
Block a user