Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter vendor and test CodeQL results #2243

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

helsaawy
Copy link
Contributor

Skip scanning for files under the test/ or vendor/ directories, or for _test.go files.

Neither the Go or C/C++ CodeQL scanning support the path-ignore config options, raising the warning:

Path filters have no effect for Go
Go does not support path-based filtering. The paths and paths-ignore configuration properties will have no effect for this language.

image

Use the recommended advanced-security/filter-sarif action to instead filter results, based on provided example.

Remove the config file since there is nothing to configure.

Additionally, build the securitypolicy.exe and dmverity-vhd binaries during CodeQL, and securitypolicy during the normal build CI.

@helsaawy helsaawy requested a review from a team as a code owner August 22, 2024 18:10
Skip scanning for files under the `test/` or `vendor/` directories, or
for `_test.go` files.

Neither the Go or C/C++ CodeQL scanning support the `path-ignore` config
options, raising the warning:
```
Path filters have no effect for Go
Go does not support path-based filtering. The paths and paths-ignore configuration properties will have no effect for this language.
```

Use the recommended `advanced-security/filter-sarif` action to instead
filter results, based on [provided
example](https://github.com/advanced-security/filter-sarif?tab=readme-ov-file#example).

Remove the config file since there is nothing to configure.

Additionally, build the `securitypolicy.exe` and `dmverity-vhd` binaries
during CodeQL, and `securitypolicy` during the normal build CI.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy merged commit e7a1be7 into microsoft:main Aug 23, 2024
19 checks passed
@helsaawy helsaawy deleted the codeql-file branch August 23, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants