Skip to content

Commit

Permalink
remove docker scheme from filename (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoyamachi committed Jan 2, 2023
1 parent 9b57734 commit 7ebf663
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/report/sarif_test.go
Expand Up @@ -22,7 +22,7 @@ func TestSarifWriter_Write(t *testing.T) {
assessments: types.AssessmentSlice{
{
Code: "DKL-DI-0006",
Filename: "docker://alpine:latest",
Filename: "alpine:latest",
Desc: "Avoid 'latest' tag",
},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/report/testdata/DKL-DI-0006.sarif
Expand Up @@ -31,7 +31,7 @@
{
"physicalLocation": {
"artifactLocation": {
"uri": "docker://alpine:latest"
"uri": "alpine:latest"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/run.go
Expand Up @@ -94,7 +94,7 @@ func Run(c *cli.Context) (err error) {
if useLatestTag {
assessments = append(assessments, &types.Assessment{
Code: types.AvoidLatestTag,
Filename: "docker://" + imageName,
Filename: imageName,
Desc: "Avoid 'latest' tag",
})
}
Expand Down

0 comments on commit 7ebf663

Please sign in to comment.