Skip to content

Commit

Permalink
Use token from secrets manager instead
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed May 1, 2024
1 parent 9e7120b commit 0c1fafc
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,25 @@ jobs:

cut-issue-on-failure:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.DAFNY_ISSUE_CUTTING_TOKEN }}
steps:
# We need access to the role that is able to get CI Bot Creds
- name: Configure AWS Credentials for Release
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-west-2
role-to-assume: arn:aws:iam::587316601012:role/GitHub-CI-CI-Bot-Credential-Access-Role-us-west-2
role-session-name: CI_Bot_Release

# Use AWS Secrets Manger GHA to retrieve CI Bot Creds
- name: Get CI Bot Creds Secret
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: Github/aws-crypto-tools-ci-bot
parse-json-secrets: true

- name: Create release blocker on dafny-lang/dafny
env:
GH_TOKEN: ${{ env.GITHUB_AWS_CRYPTO_TOOLS_CI_BOT_ESDK_RELEASE_TOKEN }}
run: |
gh issue create \
--repo "dafny-lang/dafny" \
Expand Down

0 comments on commit 0c1fafc

Please sign in to comment.