JWT Testing
This commit is contained in:
parent
67f73b8752
commit
1a6fad6af9
19
.gitea/workflows/jwt-testing.yaml
Normal file
19
.gitea/workflows/jwt-testing.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: JWT Testing
|
||||||
|
run-name: JWT Testing
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- jwt-testing
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
jwt-testingh:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# https://github.com/marketplace/actions/generate-oidc-jwt
|
||||||
|
- name: get oidc token
|
||||||
|
run: |
|
||||||
|
OIDC_TOKEN=$(curl -sLS "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=cicd.tremolo.dev" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN")
|
||||||
|
echo $OIDC_TOKEN
|
||||||
|
JWT=$(echo $OIDC_TOKEN | jq -j '.value')
|
||||||
|
echo $JWT
|
||||||
|
echo "JWT=$JWT" >> $GITHUB_ENV
|
Loading…
x
Reference in New Issue
Block a user