You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 version
0 commit comments