diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 00000000..a4f71322 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,8 @@ +name: "SparkEngine CodeQL Config" + +# Exclude third-party libraries from code scanning analysis. +# These are vendored dependencies we don't maintain — alerts in them +# are noise and should not block PRs. +paths-ignore: + - "ThirdParty" + - "ThirdParty/**" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e1e56522..c2e5c371 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -39,6 +39,9 @@ jobs: actions: read contents: read + # required for Copilot Autofix to propose pull request suggestions + pull-requests: write + strategy: fail-fast: false matrix: @@ -81,10 +84,7 @@ jobs: with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - + config-file: ./.github/codeql/codeql-config.yml # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality