test permission #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: oidc-demo | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
AWS_REGION : "eu-west-3" | |
jobs: | |
deploy: | |
name: demo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Assume role with Web Identity | |
- name: configure aws credentials | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: arn:aws:iam::450568479740:role/github-oidc | |
role-session-name: samplerolesession | |
aws-region: ${{ env.AWS_REGION }} | |
# For demo purpose, open a shell in the Github Runner | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 |