File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
8
8
jobs :
9
- debug :
10
- permissions :
11
- actions : read
12
- id-token : write
13
- contents : read
14
- uses : bdehamer/workflows/.github/workflows/oidc-dump.yml@main
15
9
build :
16
10
runs-on : ubuntu-latest
17
- permissions :
18
- id-token : write
19
11
steps :
20
- - run : |
21
- echo "URL:${ACTIONS_ID_TOKEN_REQUEST_URL}"
22
- echo "TOKEN:${ACTIONS_ID_TOKEN_REQUEST_TOKEN}"
23
- curl "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=donottrust" \
24
- -H "Authorization: bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" \
25
- -H "Accept: application/json; api-version=2.0" \
26
- -H "Content-Type: application/json" \
27
- --silent | jq -r '.value' > oidc_token
28
- echo -e "\nOIDC Token (encoded)"
29
- cat oidc_token
30
- echo -e "\nOIDC Token (decoded)"
31
- cat oidc_token | jq -R 'split(".") | .[0],.[1] | @base64d | fromjson'
32
12
- uses : actions/checkout@v3
33
13
- name : Use Node.js ${{ matrix.node-version }}
34
14
uses : actions/setup-node@v3
Original file line number Diff line number Diff line change 3
3
release :
4
4
types : [created]
5
5
jobs :
6
- debug :
7
- permissions :
8
- actions : read
9
- id-token : write
10
- contents : read
11
- uses : bdehamer/workflows/.github/workflows/oidc-dump.yml@main
12
6
build :
13
7
runs-on : ubuntu-latest
14
8
permissions :
You can’t perform that action at this time.
0 commit comments