Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andyi2it committed Feb 14, 2024
1 parent b50165f commit d0899d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (d *Downloader) DownloadModel(modelName string, modelSpec *v1alpha1.ModelSp
if err != nil {
return errors.Wrapf(createErr, "failed to encode model spec")
}
err = os.WriteFile(successFile, encodedJson, 0644) // nolint gosec
err = os.WriteFile(successFile, encodedJson, 0644) //nolint: gosec

Check failure

Code scanning / gosec

Expect WriteFile permissions to be 0600 or less Error

Expect WriteFile permissions to be 0600 or less
if err != nil {
return errors.Wrapf(createErr, "failed to write the success file")
}
Expand Down

0 comments on commit d0899d2

Please sign in to comment.