Skip to content

test permission

test permission #6

Workflow file for this run

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