fix: add CodeQL configuration to exclude documented SSRF false positives and update workflow to use new config
This commit is contained in:
7
.github/workflows/codeql.yml
vendored
7
.github/workflows/codeql.yml
vendored
@@ -44,9 +44,10 @@ jobs:
|
||||
uses: github/codeql-action/init@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# Use custom model for Go to recognize SSRF sanitizers
|
||||
# See: .github/codeql-custom-model.yml
|
||||
config-file: ${{ matrix.language == 'go' && '.github/codeql-custom-model.yml' || '' }}
|
||||
# Use CodeQL config to exclude documented false positives
|
||||
# Go: Excludes go/request-forgery for url_testing.go (has 4-layer SSRF defense)
|
||||
# See: .github/codeql/codeql-config.yml for full justification
|
||||
config-file: ./.github/codeql/codeql-config.yml
|
||||
|
||||
- name: Setup Go
|
||||
if: matrix.language == 'go'
|
||||
|
||||
Reference in New Issue
Block a user