File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
actions/create-github-app-token Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 65
65
curl -v -X POST "${VAULT_URL}/v1/auth/github-actions-oidc/login" \
66
66
-H "Content-Type: application/json" \
67
67
-H "Proxy-Authorization-Token: Bearer ${{ steps.get-github-jwt-token.outputs.github-jwt }}" \
68
- -d '{"role": "${REPOSITORY_NAME}-${{ steps.normalize-workflow-name.outputs.ref_sha }}-${PERMISSION_SET}","jwt": "${{ steps.get-github-jwt-auth-token.outputs.github-jwt }}"}'
68
+ -d "{\"role\": \"${REPOSITORY_NAME}-${{ steps.normalize-workflow-name.outputs.ref_sha }}-${PERMISSION_SET}\",\"jwt\": \"${{ steps.get-github-jwt-auth-token.outputs.github-jwt }}\"}" \
69
+ | jq -r '.auth.client_token' > vault_token.txt
70
+ echo "vault_token=$(cat vault_token.txt)" >> $GITHUB_OUTPUT
69
71
70
72
- name : Get Github Token
71
73
id : generate-token
You can’t perform that action at this time.
0 commit comments