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: actions/trigger-argo-workflow/README.md
+36-11Lines changed: 36 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,24 +36,49 @@ parameters: |
36
36
37
37
- `uri`: The URI of the workflow that was created.
38
38
39
+
## Required permissions
40
+
41
+
This action needs a couple of explicit `GITHUB_TOKEN` scopes because it:
42
+
43
+
- authenticates to Vault via GitHub OIDC (needs **`id-token: write`**)
44
+
- checks out / reads Go files from the repo (needs **`contents: read`**)
45
+
46
+
Ideally, place these permissions at the job level to avoid zizmor flagging them as [excessive permissions](https://woodruffw.github.io/zizmor/audits/#excessive-permissions).
47
+
48
+
```yaml
49
+
permissions:
50
+
contents: read # allows actions/checkout and setup-go to read the repo
51
+
id-token: write # allows get-vault-secrets to create an OIDC token for Vault
0 commit comments