You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,28 @@ with:
86
86
githubToken: ${{ secrets.MY_GITHUB_TOKEN }}
87
87
caCertificate: ${{ secrets.VAULTCA }}
88
88
```
89
+
- **jwt**: (Github OIDC) you must provide a `role` parameter, additionally you can pass `jwtGithubAudience` parameter.
90
+
91
+
```yaml
92
+
...
93
+
with:
94
+
url: https://vault.mycompany.com:8200
95
+
method: jwt
96
+
role: github-action
97
+
```
98
+
99
+
**Notice:** For Github provided OIDC token to work, the workflow should have `id-token: write` & `contents: read` specified in the `permissions` section of the workflow
100
+
101
+
```yaml
102
+
...
103
+
permissions:
104
+
id-token: write
105
+
contents: read
106
+
...
107
+
```
108
+
89
109
- **jwt**: you must provide a `role` & `jwtPrivateKey` parameters, additionally you can pass `jwtKeyPassword` & `jwtTtl` parameters
110
+
90
111
```yaml
91
112
...
92
113
with:
@@ -278,6 +299,7 @@ Here are all the inputs available through `with`:
278
299
| `githubToken` | The Github Token to be used to authenticate with Vault | | |
| `jwtKeyPassword` | Password for key stored in jwtPrivateKey (if needed) | | |
302
+
| `jwtGithubAudience` | Identifies the recipient ("aud" claim) that the JWT is intended for |`sigstore`| |
281
303
| `jwtTtl` | Time in seconds, after which token expires | | 3600 |
282
304
| `kubernetesTokenPath` | The path to the service-account secret with the jwt token for kubernetes based authentication |`/var/run/secrets/kubernetes.io/serviceaccount/token` | |
283
305
| `authPayload` | The JSON payload to be sent to Vault when using a custom authentication method. | | |
0 commit comments