From 0a35fc3cdd1dfb677e43ef4d6fb89da4d9356113 Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Sun, 27 Oct 2024 20:46:17 +1100 Subject: [PATCH] Delete the generated lint-resources.xml files Because `github/codeql-action/init` logs: > Java/Kotlin does not support path-based filtering. The `paths` > and `paths-ignore` configuration properties will have no effect > for this language. If desired, you can use the > [advanced-security/filter-sarif Action](https://github.com/advanced-security/filter-sarif) > to rewrite the SARIF file to exclude alerts from these paths. --- .github/workflows/codeql.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index fb8c45b..851c5b7 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -24,11 +24,10 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: - config: | - paths-ignore: - - app/build/intermediates languages: kotlin - name: Autobuild uses: github/codeql-action/autobuild@v3 + - run: find app/build/intermediates/ -name 'lint-resources.xml' -delete + shell: bash - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3