From 9b70b7582dc7f39987663683d9594fb7adb0e289 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Wed, 22 May 2024 15:36:01 +0100 Subject: [PATCH] Exclude bcsl.ts test files from CodeQL code scanning Fix errors like: ``` lib/galaxy/datatypes/test/test_file3.bcsl.ts#L2C12:12: A parse error occurred: `';' expected.`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis. ``` seen in https://github.com/galaxyproject/galaxy/actions/runs/9170180020/job/25211944475 . --- .github/codeql/codeql-config.yml | 2 ++ .github/workflows/codeql-analysis.yml | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 .github/codeql/codeql-config.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 000000000000..3cf65b36a7c5 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,2 @@ +paths-ignore: + - 'lib/galaxy/datatypes/test/*.bcsl.ts' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1d2d551b0192..a4cb056311a5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -52,6 +52,9 @@ jobs: # 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 + config-file: ./.github/codeql/codeql-config.yml + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild