Skip to content

Commit

Permalink
fix: amend base image check to alpine types
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszbarwicki committed Feb 5, 2024
1 parent 9a567f9 commit 917a81c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ func (a *AllowedBaseImage) Test() *tractusx.QualityResult {
fmt.Printf("Could not read dockerfile from Path %s\n", dockerfilePath)
continue
}

if !isAllowedBaseImage(file.baseImage()) {
if !isAllowedBaseImage(strings.Split(file.baseImage(), ":")[0]) {
checkPassed = false
deniedBaseImages = append(deniedBaseImages, file.baseImage())
}
Expand Down

0 comments on commit 917a81c

Please sign in to comment.