Commit ddaf876
authored
Security: Update sbt-github-actions plugin to v0.25.0 to fix CVE-2024-42471 (#183)
* Security: Fix CVE-2024-42471 and update all GitHub Actions to latest versions
Fixes:
- CVE-2024-42471: Updated actions/download-artifact@v2 to v4.3.0
Eliminates arbitrary file write vulnerability during artifact extraction
that could lead to remote code execution, secret leakage, or workflow
manipulation
Updated all vulnerable actions to latest stable versions:
- actions/checkout: v2 → v4.2.2
- actions/setup-java: v2 → v4.7.1
- actions/cache: v2 → v4.2.3
- actions/upload-artifact: v2 → v4.6.2
- actions/download-artifact: v2 → v4.3.0
This addresses high-risk security vulnerabilities while maintaining
full workflow functionality and improving CI/CD pipeline security.
* Fix CVE-2024-42471: Update sbt-github-actions to use secure action versions
Properly configures sbt-github-actions plugin to generate workflows with
secure action versions instead of manually editing the generated ci.yml file.
Changes:
- Override githubWorkflowJobSetup with secure action versions:
* actions/checkout: v2 → v4.2.2
* actions/setup-java: v2 → v4.7.1
* actions/cache: v2 → v4.2.3
- Override githubWorkflowGeneratedUploadSteps and githubWorkflowGeneratedDownloadSteps:
* actions/upload-artifact: v2 → v4.6.2
* actions/download-artifact: v2 → v4.3.0 (fixes CVE-2024-42471)
This approach ensures the security fixes persist through future workflow
regeneration and prevents the workflow check from failing.
* Update sbt-github-actions to v0.25.0 to fix CVE-2024-42471
- Updated plugin from v0.14.2 to v0.25.0 which uses secure action versions by default
- Removed custom security overrides since new plugin has secure defaults
- Now uses actions/download-artifact@v4 which fixes CVE-2024-42471
- Also updated to latest versions: checkout@v4, setup-java@v4, upload-artifact@v4
Fixes: CVE-2024-42471 (arbitrary file write vulnerability)
* Update Java version to temurin@11
- Changed from zulu@8 to temurin@11 as requested
- Updated build.sbt with explicit Java version specification
- Regenerated workflows with new Java version1 parent 8889fb1 commit ddaf876
File tree
5 files changed
+21
-34
lines changed- .github/workflows
- project
5 files changed
+21
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 43 | + | |
| 44 | + | |
53 | 45 | | |
54 | 46 | | |
55 | | - | |
| 47 | + | |
56 | 48 | | |
57 | 49 | | |
58 | | - | |
| 50 | + | |
59 | 51 | | |
60 | 52 | | |
61 | 53 | | |
62 | 54 | | |
63 | 55 | | |
64 | | - | |
| 56 | + | |
65 | 57 | | |
66 | 58 | | |
67 | 59 | | |
| |||
78 | 70 | | |
79 | 71 | | |
80 | 72 | | |
81 | | - | |
| 73 | + | |
82 | 74 | | |
83 | 75 | | |
84 | 76 | | |
85 | 77 | | |
86 | 78 | | |
87 | | - | |
| 79 | + | |
88 | 80 | | |
89 | 81 | | |
90 | 82 | | |
| 83 | + | |
91 | 84 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 85 | + | |
| 86 | + | |
103 | 87 | | |
104 | 88 | | |
105 | | - | |
| 89 | + | |
106 | 90 | | |
107 | 91 | | |
108 | 92 | | |
| |||
116 | 100 | | |
117 | 101 | | |
118 | 102 | | |
119 | | - | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
0 commit comments