Skip to content

Commit ef3513d

Browse files
committed
correct double quotes
1 parent d9d8f6c commit ef3513d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

actions/create-github-app-token/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ runs:
6565
curl -v -X POST "${VAULT_URL}/v1/auth/github-actions-oidc/login" \
6666
-H "Content-Type: application/json" \
6767
-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
6971
7072
- name: Get Github Token
7173
id: generate-token

0 commit comments

Comments
 (0)