We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40523fd commit 171fe60Copy full SHA for 171fe60
.github/workflows/oidc.example.yml
@@ -3,3 +3,24 @@ name: oidc.example
3
4
on:
5
workflow_dispatch:
6
+
7
+jobs:
8
+ caller-identity:
9
+ name: check caller identity
10
+ # These permissions are needed to interact with GitHub's OIDC Token endpoint.
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+ runs-on: ubuntu-latest
15
16
+ steps:
17
18
+ - name: Configure AWS credentials
19
+ uses: aws-actions/configure-aws-credentials@v1
20
+ with:
21
+ aws-region: ${{ secrets.AWS_REGION }}
22
+ role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} # github_oidc_role
23
24
+ - run: aws sts get-caller-identity
25
26
+ - run: aws s3 ls
0 commit comments