Commit cf5aeb0
authored
fix: resolve code quality alerts and improve Scorecard (#54)
Fix 3 of 5 open code scanning alerts and set up branch protection
for Scorecard Code Review compliance.
Alert #6 (js/disabling-certificate-validation): Refactored
defaultDownloadToFile into a factory function createDownloader(get)
that accepts a protocol-specific get function. Production uses
https.get; tests use http.get with a local HTTP server. Eliminates
the process-wide NODE_TLS_REJECT_UNAUTHORIZED=0 that CodeQL flagged.
Alert #1 (TokenPermissionsID): Moved contents:write and
pull-requests:write from top-level to job-level permissions in
dependabot-auto-merge.yml. Top-level now declares permissions: {}.
Alert #2 (CodeReviewID): Added auto-approve workflow
(hmarr/auto-approve-action v4) for PRs from SebTardif and
dependabot[bot]. Migrated from classic branch protection to GitHub
Rulesets with no admin bypass, no code owner review requirement
(avoids CODEOWNERS circular dependency), and
strict_required_status_checks_policy: false (avoids serial merge
queue). Configured squash-only merges with auto-delete branches.
Alerts #3 (MaintainedID) and #5 (FuzzingID) are not fixable: #3 is
time-based (repo <90 days), #5 requires fuzzer integration that is
not practical for a VS Code extension.
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>1 parent 438443a commit cf5aeb0
4 files changed
Lines changed: 93 additions & 67 deletions
File tree
- .github/workflows
- src/install
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
731 | 732 | | |
732 | 733 | | |
733 | 734 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
742 | 755 | | |
743 | 756 | | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
748 | 770 | | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
754 | 774 | | |
755 | | - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
756 | 780 | | |
757 | 781 | | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
| 782 | + | |
| 783 | + | |
772 | 784 | | |
773 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
774 | 790 | | |
775 | 791 | | |
776 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 22 | + | |
36 | 23 | | |
37 | 24 | | |
38 | 25 | | |
| |||
57 | 44 | | |
58 | 45 | | |
59 | 46 | | |
60 | | - | |
| 47 | + | |
61 | 48 | | |
62 | 49 | | |
63 | 50 | | |
| 51 | + | |
| 52 | + | |
64 | 53 | | |
65 | 54 | | |
66 | 55 | | |
67 | 56 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 57 | | |
75 | 58 | | |
76 | 59 | | |
| |||
84 | 67 | | |
85 | 68 | | |
86 | 69 | | |
87 | | - | |
| 70 | + | |
88 | 71 | | |
89 | 72 | | |
90 | 73 | | |
91 | | - | |
| 74 | + | |
92 | 75 | | |
93 | 76 | | |
94 | 77 | | |
| |||
97 | 80 | | |
98 | 81 | | |
99 | 82 | | |
100 | | - | |
| 83 | + | |
101 | 84 | | |
102 | 85 | | |
103 | 86 | | |
| |||
107 | 90 | | |
108 | 91 | | |
109 | 92 | | |
110 | | - | |
| 93 | + | |
111 | 94 | | |
112 | 95 | | |
113 | 96 | | |
| |||
117 | 100 | | |
118 | 101 | | |
119 | 102 | | |
120 | | - | |
| 103 | + | |
121 | 104 | | |
122 | 105 | | |
123 | 106 | | |
| |||
126 | 109 | | |
127 | 110 | | |
128 | 111 | | |
129 | | - | |
| 112 | + | |
130 | 113 | | |
131 | 114 | | |
132 | 115 | | |
| |||
0 commit comments