Skip to content

Commit

Permalink
Exclude the G201 gosec rule
Browse files Browse the repository at this point in the history
SQL query string formatting is used to create dynamic SQL queries based
on query filters that are allow listed. Query values are all parameterized
in prepared statements except for integer.

Excluding it on the specific line didn't work for some reason.

Signed-off-by: mprahl <[email protected]>
(cherry picked from commit a92d648)
  • Loading branch information
mprahl authored and Magic Mirror committed Jan 17, 2024
1 parent 351bc04 commit 890d919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test-coverage: test
test-dependencies: envtest kubebuilder

.PHONY: gosec-scan
gosec-scan:
gosec-scan: GOSEC_ARGS=-exclude G201

############################################################
# build section
Expand Down

0 comments on commit 890d919

Please sign in to comment.