Token from Vault action
Some checks failed
JWT Testing / jwt-testingh (push) Failing after 5s

This commit is contained in:
Jack Jackson 2025-03-17 22:54:27 -07:00
parent 1a6fad6af9
commit e55379289e
3 changed files with 20 additions and 8 deletions

View File

@ -10,10 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/generate-oidc-jwt
- name: get oidc token
- name: Import Secrets
id: import-secrets
uses: hashicorp/vault-action@v2
with:
url: http://vault.avril
method: kubernetes
role: act-runner-helm-charts
secrets: |
github/token?org_name=${{ gitea.repository_owner }} token | GITHUB_TOKEN ;
- name: print
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
echo $GITHUB_TOKEN | base64 | base64

View File

@ -1,6 +1,9 @@
name: Mirror to GitHub
run-name: Mirror to GitHub
on: [push]
on:
push:
branches:
- main
jobs:
build-and-push:

View File

@ -1,6 +1,9 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions! 🚀
on: [push]
on:
push:
branches:
- main
jobs:
build-and-push: