Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankatliarchuk committed Jul 3, 2022
1 parent 40523fd commit 171fe60
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/oidc.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,24 @@ name: oidc.example

on:
workflow_dispatch:

jobs:
caller-identity:
name: check caller identity
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest

steps:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} # github_oidc_role

- run: aws sts get-caller-identity

- run: aws s3 ls

0 comments on commit 171fe60

Please sign in to comment.