Skip to content

Commit

Permalink
Update bitrise-envs-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
atn4z7 committed Feb 21, 2024
1 parent 797f3e2 commit 56d6199
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/bitrise-envs-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,23 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3

# - uses: mcblair/[email protected]
# with:
# region: us-east-2
# role-arn: arn:aws:iam::975050371175:role/github-sa-role
# profile-name: default

- name: Configure AWS Credentials Action for GitHub Actions
uses: aws-actions/configure-aws-credentials@v1
- name: Configure AWS credentials
uses: aws-actions/[email protected]
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::975050371175:role/github-sa-role
role-session-name: githubsa

# - name: Setup Profile
# run: |
# aws configure set region ${{ env.AWS_REGION }} --profile githubsa
# aws configure set aws_access_key_id ${{ env.AWS_ACCESS_KEY_ID }} --profile githubsa
# aws configure set aws_secret_access_key ${{ env.AWS_SECRET_ACCESS_KEY }} --profile githubsa
# aws configure set aws_session_token ${{ env.AWS_SESSION_TOKEN }} --profile githubsa
- name: Get secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
ENV_TEST, core/dev/mobile/.env.development.test
- name: Retrieve envs from AWS Secrets Manager 1
working-directory: packages/core-mobile/scripts/github
run: |
# sudo cat ~/.aws/config
# sudo echo output = json >> ~/.aws/config
# sudo cat ~/.aws/config
# sudo cat ~/.aws/credentials
sudo aws secretsmanager list-secrets
# sudo aws secretsmanager get-secret-value --secret-id core/dev/mobile/.env.development.test | grep "SecretString"
# echo $ENV_TEST | grep "SecretString"
# - name: Retrieve envs from AWS Secrets Manager 2
# working-directory: packages/core-mobile/scripts/github
# run: |
Expand Down

0 comments on commit 56d6199

Please sign in to comment.