Commit fbfe779
committed
SECCMP-1797: Downgrade contents permission from write to read
The copyright-check reusable workflow only needs contents: read
to checkout code. contents: write was unnecessarily granting the
workflow token write access to repository contents, which expands
the blast radius of any PwnRequest-style attack.
The called workflow (copyright-check.yml) already declares its own
permissions block with contents: read.1 parent 7ea79ef commit fbfe779
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
0 commit comments