Commit d2d4780
authored
ci: add explicit permissions to semgrep workflow (#3992)
This PR fixes security alert #153 by adding explicit permissions to the
semgrep workflow. The fix adds \permissions: contents: read\ to scope
the GITHUB_TOKEN following the principle of least privilege.
Signed-off-by: Jiyong Huang <huangjy@emqx.io>1 parent f611688 commit d2d4780
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments