-
Notifications
You must be signed in to change notification settings - Fork 1
Bump codacy-engine-scala-seed and Amazon Corretto runtime image #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ FROM golang:1.15.15-alpine3.14 as builder | |
| RUN apk add --no-cache git | ||
| RUN go get -u gitlab.com/opennota/check/cmd/aligncheck | ||
|
|
||
| FROM amazoncorretto:8-alpine3.14-jre | ||
| FROM amazoncorretto:8-alpine3.21-jre | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM RISK The runtime image has been updated to Alpine 3.21, but the builder stage still uses Alpine 3.14. This version mismatch between stages can cause stability issues or runtime crashes because the Go binaries were compiled against an older version of |
||
|
|
||
| RUN apk add bash | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| sbt.version=1.4.3 | ||
| sbt.version=1.10.7 |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -35,7 +35,7 @@ object Aligncheck extends Tool { | |||||||||
| private def filterResultsForFiles(results: List[Result], filesOpt: Option[Set[Source.File]]): List[Result] = { | ||||||||||
| filesOpt.fold(results) { files => | ||||||||||
| results.collect { | ||||||||||
| case res: Result.Issue if files.contains(res.file) => res | ||||||||||
| case res: Result.Issue if files.contains(res.filename) => res | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 HIGH RISK The upgrade to
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 HIGH RISK The filtering logic contains a type mismatch and a logic error. The Consider using
Suggested change
|
||||||||||
| } | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 MEDIUM RISK
The multi-stage build uses Alpine 3.14 for the builder stage (Line 1) and Alpine 3.21 for the runtime stage (Line 6). Mixing these versions when copying system-dependent components like the Go toolchain and the aligncheck binary is risky because of potential ABI incompatibilities or changed library paths in musl across major Alpine releases. This can cause the tool to fail at runtime when resolving symbols or executing Go commands.