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

pip: bump regex from 2023.8.8 to 2023.10.3 #130

Closed
wants to merge 8 commits into from

Commits on Sep 25, 2023

  1. Remove existing CodeQL infrastructure

    CodeQL currently runs via the codeql-analysis.yml GitHub workflow
    which uses the `github/codeql-action/init@v2` action (pre-build)
    and the `github/codeql-action/analyze@v2` action (post-build) to
    setup the CodeQL environment and extract results.
    
    This infrastructure is removed in preparation for a new design that
    will directly run the CodeQL CLI as part of the build. This will
    allow CodeQL to be run locally as part of the normal build process
    with results that match 1:1 with CI builds.
    
    Cc: Sean Brogan <sean.brogan@microsoft.com>
    Cc: Michael Kubacki <mikuback@linux.microsoft.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
    makubacki committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    4402606 View commit details
    Browse the repository at this point in the history
  2. BaseTools/Plugin/CodeQL: Add CodeQL build plugin

    Adds a CodeQL plugin that supports CodeQL in the build system.
    
    1. CodeQlBuildPlugin - Generates a CodeQL database for a given build.
    2. CodeQlAnalyzePlugin - Analyzes a CodeQL database and interprets
       results.
    3. External dependencies - Assist with downloading the CodeQL CLI and
       making it available to the CodeQL plugins.
    4. CodeQlQueries.qls - A C/C++ CodeQL query set run against the code.
    5. Readme.md - A comprehensive readme file to help:
       - Platform integrators understand how to configure the plugin
       - Developers understand how to modify the plugin
       - Users understand how to use the plugin
    
    Read Readme.md for additional details.
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <gaoliming@byosoft.com.cn>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Rebecca Cran <rebecca@bsdio.com>
    Cc: Sean Brogan <sean.brogan@microsoft.com>
    Cc: Yuwei Chen <yuwei.chen@intel.com>
    Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
    makubacki committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    a10238d View commit details
    Browse the repository at this point in the history
  3. .github/workflows/codeql.yml: Add CodeQL workflow

    Adds a workflow to run CodeQL against all packages built in
    .pytool/CISettings.py. The following is done:
    
    1. Determine which packages to build against. Those that support
       are managed by .pytool/CISettings.py will be selected.
    
    For each package:
    
    2. Determine how to interact with the package. Such as whether
       `stuart_ci_setup` or `stuart_setup` should be used.
    3. Perform supported Stuart steps for setup and update.
    4. Discover the CodeQL plugin directory in the repo.
    5. Attempt to load the CodeQL CLI specific to the host OS from a
       GitHub cache.
    6. Perform the build.
    7. Clean up some files after build to improve robustness.
    8. Upload the CodeQL results (generated SARIF file) to GitHub Code
       Scanning. The results will be associated with the trigger of the
       workflow.
    
    After each step that can upload logs such as the setup, update, and
    build steps the logs are uploaded as an artifact to the workflow run.
    This allows easy debugging in case there's an error in the step.
    
    The SARIF file is also uploaded to the workflow run so it can be
    downloaded and analyzed.
    
    Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
    makubacki committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    77536a8 View commit details
    Browse the repository at this point in the history
  4. BaseTools/Plugin/CodeQL: Add integration helpers

    Adds a Python module to the CodeQL plugin directory that exports
    functions commonly needed for Stuart-based platforms to easily
    enable CodeQL in their platform build.
    
    This functionality has already moved to edk2-pytool-extensions
    https://github.com/tianocore/edk2-pytool-extensions in the
    `edk2toolext/codeql.py` file but edk2 is too far behind to use that.
    
    Additional integration changes are needed in edk2 and the series
    to add those has not made it past review. In the meantime, the
    functions are available locally in this commit and this commit can
    be reverted after edk2-pytool-extensions 0.24.1 or greater is used
    in edk2.
    
    Cc: Bob Feng <bob.c.feng@intel.com>
    Cc: Liming Gao <gaoliming@byosoft.com.cn>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Rebecca Cran <rebecca@bsdio.com>
    Cc: Sean Brogan <sean.brogan@microsoft.com>
    Cc: Yuwei Chen <yuwei.chen@intel.com>
    Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
    makubacki committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    7c36d0e View commit details
    Browse the repository at this point in the history
  5. .pytool/CISettings.py: Integrate CodeQL

    Adds the `--codeql` parameter to `stuart_update` and
    `stuart_ci_build`.
    
    - `stuart_update --codeql` - Downloads the CodeQL CLI locally. The
      command will pull the appropriate binary for the host OS.
    - `stuart_ci_build --codeql` - Runs CodeQL during the build resulting
      in a CodeQL database and SARIF result file in the `Build`
      directory.
    
    Cc: Sean Brogan <sean.brogan@microsoft.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Liming Gao <gaoliming@byosoft.com.cn>
    Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
    makubacki committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    6d9f830 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. TEST: CodeQL workflow

    makubacki committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    f11f29a View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Configuration menu
    Copy the full SHA
    c8c5488 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. pip: bump regex from 2023.8.8 to 2023.10.3

    Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2023.8.8 to 2023.10.3.
    - [Changelog](https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt)
    - [Commits](mrabarnett/mrab-regex@2023.8.8...2023.10.3)
    
    ---
    updated-dependencies:
    - dependency-name: regex
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 3, 2023
    Configuration menu
    Copy the full SHA
    2122594 View commit details
    Browse the repository at this point in the history