From 1a6fad6af96b78e2e4726cfb046709e787f99c28 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Mon, 17 Mar 2025 22:45:41 -0700 Subject: [PATCH] JWT Testing --- .gitea/workflows/jwt-testing.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitea/workflows/jwt-testing.yaml 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