blogcontent/.gitea/workflows/jwt-testing.yaml
Jack Jackson 1a6fad6af9
Some checks failed
JWT Testing / jwt-testingh (push) Failing after 3s
Mirror to GitHub / build-and-push (push) Failing after 12s
Gitea Actions Demo / build-and-push (push) Successful in 1m49s
Gitea Actions Demo / update-deployment-repo (push) Successful in 10s
JWT Testing
2025-03-17 22:45:41 -07:00

20 lines
585 B
YAML

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