Repository navigation
Commit d7f87d7
committed
ci: fix zizmor findings in release workflow
Scope the GitHub App token to contents:write only, instead of
inheriting all installation permissions (github-app finding).
Set persist-credentials: false on checkout so the token is not
left in .git/config for the rest of the job (artipacked finding).
Re-inject the token via the remote URL right before git push,
keeping push functional without persisting credentials on disk.
Assisted-by: AI
Signed-off-by: Alice Frosi <afrosi@redhat.com>1 parent 844be71 commit d7f87d7
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
0 commit comments