fix: update workflow action to user var instead of secret

This commit is contained in:
yike5460
2024-10-10 06:24:04 +00:00
parent 46fb759137
commit 728ef6d8a6

View File

@@ -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