diff --git a/.gitea/workflows/jwt-testing.yaml b/.gitea/workflows/jwt-testing.yaml new file mode 100644 index 0000000..b77090e --- /dev/null +++ b/.gitea/workflows/jwt-testing.yaml @@ -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