Commit f630528
committed
workflow: set restricted permissions
If no explicit permissions are set for a GitHub Actions run, then the
repository or organization permissions are used, which can be too broad.
Let's specifically set the permissions to read-only for the contents of
the repository, since we only need to clone and test our code. That way,
we'll be taking advantage of the principle of least privilege.1 parent 48b0862 commit f630528
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
0 commit comments