Skip to content

Commit

Permalink
CodeQlFilters.yml: Glob file patterns in nested directories (#307)
Browse files Browse the repository at this point in the history
## Description

This filter file is picked up both directly in `mu_plus` but also
downstream repos. Therefore, the file patterns should allow matches
regardless of where a `mu_plus` submodule or external dependency
may reside in the overall repo structure.

- [ ] Impacts functionality?
- **Functionality** - Does the change ultimately impact how firmware
functions?
- Examples: Add a new library, publish a new PPI, update an algorithm,
...
- [ ] Impacts security?
- **Security** - Does the change have a direct security impact on an
application,
    flow, or firmware?
  - Examples: Crypto algorithm change, buffer overflow fix, parameter
    validation improvement, ...
- [ ] Breaking change?
- **Breaking change** - Will anyone consuming this change experience a
break
    in build or boot behavior?
- Examples: Add a new library class, move a module to a different repo,
call
    a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
  - **Tests** - Does the change include any explicit test code?
  - Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
- **Documentation** - Does the change contain explicit documentation
additions
    outside direct code modifications (and comments)?
- Examples: Update readme file, add feature readme file, link to
documentation
    on an a separate Web page, ...

## How This Was Tested

- Verified local `mu_plus` CodeQL build
- Verified downstream (`mu_tiano_platforms`) CodeQL build that leverages
  the `CodeQlFilters.yml` file from `mu_plus`.

## Integration Instructions

No change in filtering behavior within `mu_plus`. Downstream repos that
use
`mu_plus` will see more results auto filtered matching the expectations
of
upstream repos.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
makubacki committed Sep 6, 2023
1 parent 88d3dd3 commit a3d53ef
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions CodeQlFilters.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
## @file
# CodeQL Result Filters for Packages in Mu Plus
#
# Note: Packages that use Mu Basecore can reuse this file to quickly pick up the
# same filters applied to results in the Mu Plus repo.
# Note:
# 1. Packages that use Mu Plus can reuse this file to quickly pick up the
# same filters applied to results in the Mu Plus repo.
# 2. It is recommended paths begin with `**/` in filter files residing in repos that
# are used as dependencies by other repos (e.g. Common/MU). That way the filter
# will apply both in Mu Plus directly and regardless of where Mu Plus is
# located within a downstream repos directory hierarchy.
#
# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

{
"Filters": [
"-AdvLoggerPkg/AdvancedFileLogger/AdvancedFileLogger.c:SM02311",
"-HidPkg/HidMouseAbsolutePointerDxe/HidMouseAbsolutePointerDxe.c:SM02298",
"-MsCorePkg/Library/PlatformBootManagerLib/BdsPlatform.c:SM02311",
"-**/AdvLoggerPkg/AdvancedFileLogger/AdvancedFileLogger.c:SM02311",
"-**/HidPkg/HidMouseAbsolutePointerDxe/HidMouseAbsolutePointerDxe.c:SM02298",
"-**/MsCorePkg/Library/PlatformBootManagerLib/BdsPlatform.c:SM02311",
]
}

0 comments on commit a3d53ef

Please sign in to comment.