feat(gha): Set workflow permissions for OIDC #6
Workflow file for this run
This file contains hidden or 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: Test AWS | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - edited | |
| workflow_dispatch: {} | |
| permissions: | |
| id-token: write | |
| jobs: | |
| test-aws: | |
| name: Test AWS | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: release-ecr | |
| steps: | |
| - name: Debug OIDC | |
| uses: github/actions-oidc-debugger@main | |
| with: | |
| audience: https://github.com/DivergentCodes | |
| - name: Setup AWS | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: ${{ vars.AWS_REGION }} | |
| role-to-assume: ${{ vars.AWS_ROLE_ARN }} | |
| role-session-name: github-actions-test-aws |