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:
|
||||
review:
|
||||
runs-on: ubuntu-latest
|
||||
environment: AWS_ROLE_TO_ASSUME
|
||||
|
||||
permissions:
|
||||
# read repository contents and write pull request comments
|
||||
id-token: write
|
||||
@@ -53,8 +55,8 @@ jobs:
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
# using repository secret to get the role arn
|
||||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
|
||||
# using repository environment variable to get the role arn
|
||||
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME_VAR }}
|
||||
aws-region: us-east-1
|
||||
|
||||
- name: Intelligent GitHub Actions
|
||||
|
||||
Reference in New Issue
Block a user