Commit 41bdbef
committed
Split lint into two jobs for security
Separate the lint workflow into:
- lint: read-only job that checks out fork code safely with
contents: read permission, runs rubocop without auto-correct
- autocorrect: write job that only runs for same-repo PRs,
checks out by branch ref, and pushes auto-corrections
This prevents fork PRs from executing untrusted code with
write-scoped GITHUB_TOKEN.1 parent 1cc71e4 commit 41bdbef
1 file changed
+23
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| 11 | + | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
26 | 43 | | |
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
30 | 47 | | |
31 | | - | |
32 | 48 | | |
33 | 49 | | |
34 | 50 | | |
| |||
39 | 55 | | |
40 | 56 | | |
41 | 57 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 58 | + | |
45 | 59 | | |
46 | | - | |
47 | 60 | | |
48 | 61 | | |
49 | | - | |
| 62 | + | |
0 commit comments