File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
actions/get-vault-secrets Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 62
62
COMMON_SECRETS : ${{ inputs.common_secrets }}
63
63
REPO : ${{ github.repository }}
64
64
65
+ - id : get-github-jwt-token
66
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
67
+ with :
68
+ script : |
69
+ const jwt = await core.getIDToken("vault-github-actions-grafana-${{ inputs.vault_instance }}");
70
+ core.setSecret(jwt);
71
+ core.setOutput("github-jwt",jwt);
72
+
65
73
# Get the secrets
66
74
- name : Import Secrets
67
75
id : import-secrets
74
82
jwtGithubAudience : " https://vault-github-actions.grafana-${{ inputs.vault_instance }}.net"
75
83
extraHeaders : |
76
84
Proxy-Authorization: Bearer ${{ steps.vault-iap-auth.outputs.id_token }}
85
+ Proxy-Authorization-Token: Bearer ${{ steps.get-github-jwt-token.outputs.github-jwt }}
77
86
secrets : |
78
87
${{ steps.translate-secrets.outputs.secrets }}
You can’t perform that action at this time.
0 commit comments