From 965353f8d49814db474997f4efb65137d546adca Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 14 Mar 2022 08:58:10 +0000 Subject: [PATCH 1/7] Try running on Windows instead --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bd74970..0f919ad 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,7 @@ on: jobs: CodeQL-Build: # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest - runs-on: ubuntu-latest + runs-on: windows-latest permissions: security-events: write From 2a6f0f95ae2a7c2b3c4ab3eb9c27b5c16aef02df Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 14 Mar 2022 09:08:17 +0000 Subject: [PATCH 2/7] 2019 then? --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0f919ad..ca9f9fc 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,7 @@ on: jobs: CodeQL-Build: # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest - runs-on: windows-latest + runs-on: windows-2019 permissions: security-events: write From 330d8681c032a254a968e95d4350bbacd8fe8f55 Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 14 Mar 2022 09:18:03 +0000 Subject: [PATCH 3/7] Try compiling manually --- .github/workflows/codeql.yml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ca9f9fc..3835a0e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,25 +25,10 @@ jobs: uses: github/codeql-action/init@v1 with: config-file: ./.github/codeql/codeql-config.yml - - # Override language selection by uncommenting this and choosing your languages - # with: - # languages: go, javascript, csharp, python, cpp, java - # 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 - uses: github/codeql-action/autobuild@v1 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following - # three lines and modify them (or add more) to build your code if your - # project uses a compiled language - - #- run: | - # make bootstrap - # make release + languages: [javascript, cpp] + - run: | + npm i + npm run build - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 From e10dc648167418ae25ad6622a2e17787224276ad Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 14 Mar 2022 09:19:40 +0000 Subject: [PATCH 4/7] Update codeql.yml --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3835a0e..185ef3f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,7 +25,7 @@ jobs: uses: github/codeql-action/init@v1 with: config-file: ./.github/codeql/codeql-config.yml - languages: [javascript, cpp] + languages: javascript, cpp - run: | npm i npm run build From 415248b7796fd7213b8f2f6632e467e84b8fe5f5 Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 14 Mar 2022 09:21:26 +0000 Subject: [PATCH 5/7] Specific node version --- .github/workflows/codeql.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 185ef3f..e6ee6a3 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -16,17 +16,27 @@ jobs: permissions: security-events: write + strategy: + matrix: + node: [16.13.0] + steps: - name: Checkout repository uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 with: + node-version: ${{ matrix.node }} + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1 with: config-file: ./.github/codeql/codeql-config.yml languages: javascript, cpp - - run: | + + - name: Build + run: | npm i npm run build From a15effb47cb796318a47e48eeca8daac6ebab554 Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 14 Mar 2022 09:22:06 +0000 Subject: [PATCH 6/7] yarn? --- .github/workflows/codeql.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e6ee6a3..09c2e61 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,11 +34,11 @@ jobs: with: config-file: ./.github/codeql/codeql-config.yml languages: javascript, cpp - + - name: Build run: | - npm i - npm run build + yarn + yarn build - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 From 7e69171b7be717988c369da54e4e69326d63227e Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 14 Mar 2022 09:22:59 +0000 Subject: [PATCH 7/7] Update codeql.yml --- .github/workflows/codeql.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 09c2e61..d6753bb 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,7 +25,8 @@ jobs: uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 with: + uses: actions/setup-node@v1 + with: node-version: ${{ matrix.node }} # Initializes the CodeQL tools for scanning.