Skip to content

Commit

Permalink
G304 suppress warnings
Browse files Browse the repository at this point in the history
Signed-off-by: ajistrying <[email protected]>

Signed-off-by: ajistrying <[email protected]>
  • Loading branch information
ajistrying committed Jun 29, 2023
1 parent 5b7fbd9 commit 3c712dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema/schema_custom_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func LoadCustomValidationConfig(filename string) (err error) {
// Note we actively supply informative error messages to help user
// understand exactly how the load failed
getLogger().Infof("Loading custom validation config file: `%s`...", cfgFilename)
// #nosec G304 (suppress warning)
buffer, err := os.ReadFile(cfgFilename)
if err != nil {
return fmt.Errorf("unable to `ReadFile`: `%s`", cfgFilename)
Expand Down
1 change: 1 addition & 0 deletions schema/schema_formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func LoadSchemaConfig(filename string) (err error) {
// Note we actively supply informative error messages to help user
// understand exactly how the load failed
getLogger().Tracef("Reading schema config file: `%s`...", cfgFilename)
// #nosec G304 (suppress warning)
buffer, err := os.ReadFile(cfgFilename)
if err != nil {
return fmt.Errorf("unable to `ReadFile`: `%s`", cfgFilename)
Expand Down

0 comments on commit 3c712dd

Please sign in to comment.