Commit 3ee7234
committed
feat: auto-fix license files on PRs and improve CI reliability
- license-check.yml: Auto-regenerate licenses, push fix to PR, and comment
- script/licenses: Pin go-licenses version in CI for reproducibility
- script/licenses-check: Pin go-licenses version in CI
- code-scanning.yml: Exclude third-party folder from CodeQL
Inspired by cli/cli improvements:
- cli/cli#11161 (pinned version)
- cli/cli#11127 (GHAS exclusion)
- cli/cli#11370 (auto-regenerate)1 parent f347720 commit 3ee7234Copy full SHA for 3ee7234
4 files changed
+91-8Lines changed: 91 additions & 8 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- .github/workflows
- script
Expand file treeCollapse file tree
Open diff view settings
Collapse file
.github/workflows/code-scanning.yml
Copy file name to clipboardExpand all lines: .github/workflows/code-scanning.yml+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
| 49 | + |
| 50 | + |
| 51 | + |
49 | 52 | |
50 | 53 | |
51 | 54 | |
|
Collapse file
.github/workflows/license-check.yml
Copy file name to clipboard+71-5Lines changed: 71 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | | - |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
5 | 15 | |
6 | | - |
| 16 | + |
| 17 | + |
7 | 18 | |
8 | 19 | |
9 | 20 | |
10 | 21 | |
| 22 | + |
| 23 | + |
11 | 24 | |
12 | 25 | |
13 | 26 | |
14 | 27 | |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
15 | 32 | |
16 | 33 | |
17 | 34 | |
18 | 35 | |
19 | 36 | |
20 | | - |
21 | | - |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
Collapse file
+7-1Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
19 | 25 | |
20 | 26 | |
21 | 27 | |
|
Collapse file
script/licenses-check
Copy file name to clipboard+10-2Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
4 | 10 | |
5 | 11 | |
6 | 12 | |
| ||
10 | 16 | |
11 | 17 | |
12 | 18 | |
13 | | - |
| 19 | + |
14 | 20 | |
15 | 21 | |
16 | 22 | |
17 | 23 | |
18 | 24 | |
19 | 25 | |
| 26 | + |
| 27 | + |
20 | 28 | |
21 | 29 | |
0 commit comments