chore: prefer gosec for semgrep rule and turn on codeql (#3418)
This commit is contained in:
1 parent
b10a93d0e8
commit
75b4234668
2 files changed
+8
-7
No files matched your search
@@ -6,7 +6,9 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
paths-ignore:
|
||||
- 'website/'
|
||||
|
||||
jobs:
|
||||
scan:
|
||||
runs-on: ${{ fromJSON(vars.RUNNER_LARGE) }}
|
||||
|
||||
@@ -14,12 +14,11 @@ repository {
|
||||
|
||||
plugin "semgrep" {
|
||||
use_git_ignore = true
|
||||
exclude = ["testing", "website"]
|
||||
config = ["p/r2c-security-audit"]
|
||||
exclude_rule = ["generic.html-templates.security.unquoted-attribute-var.unquoted-attribute-var"]
|
||||
exclude = ["*_test.go", "website/*", "testing/*"]
|
||||
config = ["p/gosec"]
|
||||
}
|
||||
|
||||
# plugin "codeql" {
|
||||
# languages = ["go"]
|
||||
# }
|
||||
plugin "codeql" {
|
||||
languages = ["go"]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user