diff --git a/.github/workflows/__debug-artifacts.yml b/.github/workflows/__debug-artifacts.yml index 313f10f2c..fe873d251 100644 --- a/.github/workflows/__debug-artifacts.yml +++ b/.github/workflows/__debug-artifacts.yml @@ -41,6 +41,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index 2e71b5cff..5f700d23b 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -44,6 +44,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: actions/setup-go@v2 with: go-version: ^1.13.1 diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index d7b43c477..4e0b064f0 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -41,6 +41,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: db-location: ${{ runner.temp }}/customDbLocation diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 824a0041b..7bd08c291 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -35,6 +35,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging3.yml diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 0a2ece98a..759a08e8d 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -35,6 +35,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging.yml diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index 686d6f32f..08e724a28 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -35,6 +35,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging2.yml diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index de01cd994..84aa3c81d 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -44,6 +44,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index dc9d41116..3520aca93 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -35,6 +35,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging3.yml diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index c2e067cd5..6d9389064 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -35,6 +35,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - name: Fetch a CodeQL bundle shell: bash env: diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index fbff545d5..0ca4cb25c 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -41,6 +41,8 @@ jobs: uses: ./.github/prepare-test with: version: ${{ matrix.version }} + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: db-location: ${{ runner.temp }}/customDbLocation diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 704f9e31d..adf567f55 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -163,6 +163,9 @@ jobs: cd ../action/runner npm install npm run build-runner + + - name: Initialize dotnet + run: dotnet restore - name: Run init run: | @@ -200,6 +203,9 @@ jobs: cd ../action/runner npm install npm run build-runner + + - name: Initialize dotnet + run: dotnet restore - name: Run init run: | @@ -246,6 +252,9 @@ jobs: npm install npm run build-runner + - name: Initialize dotnet + run: dotnet restore + - name: Run init run: | ../action/runner/dist/codeql-runner-macos init --repository $GITHUB_REPOSITORY --languages csharp --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }} diff --git a/pr-checks/checks/debug-artifacts.yml b/pr-checks/checks/debug-artifacts.yml index fd852f38e..ee8ae8dd6 100644 --- a/pr-checks/checks/debug-artifacts.yml +++ b/pr-checks/checks/debug-artifacts.yml @@ -2,6 +2,8 @@ name: "Debug artifact upload" description: "Checks that debugging artifacts are correctly uploaded" os: ["ubuntu-latest", "macos-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/pr-checks/checks/go-custom-queries.yml b/pr-checks/checks/go-custom-queries.yml index c17b9348a..99a9351bb 100644 --- a/pr-checks/checks/go-custom-queries.yml +++ b/pr-checks/checks/go-custom-queries.yml @@ -1,6 +1,8 @@ name: "Go: Custom queries" description: "Checks that Go works in conjunction with a config file specifying custom queries" steps: + - name: Initialize dotnet + run: dotnet restore - uses: actions/setup-go@v2 with: go-version: "^1.13.1" diff --git a/pr-checks/checks/multi-language-autodetect.yml b/pr-checks/checks/multi-language-autodetect.yml index c9238b9b9..a6d3d1cfe 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -2,6 +2,8 @@ name: "Multi-language repository" description: "An end-to-end integration test of a multi-language repository using automatic language detection" os: ["ubuntu-latest", "macos-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: db-location: "${{ runner.temp }}/customDbLocation" diff --git a/pr-checks/checks/packaging-config-inputs-js.yml b/pr-checks/checks/packaging-config-inputs-js.yml index eb5a69337..abd84188b 100644 --- a/pr-checks/checks/packaging-config-inputs-js.yml +++ b/pr-checks/checks/packaging-config-inputs-js.yml @@ -3,6 +3,8 @@ description: "Checks that specifying packages using a combination of a config fi versions: ["nightly-20210831"] # This CLI version is known to work with package used in this test os: ["ubuntu-latest", "macos-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: ".github/codeql/codeql-config-packaging3.yml" diff --git a/pr-checks/checks/packaging-config-js.yml b/pr-checks/checks/packaging-config-js.yml index 6a8c5135c..4e6eaa5bb 100644 --- a/pr-checks/checks/packaging-config-js.yml +++ b/pr-checks/checks/packaging-config-js.yml @@ -3,6 +3,8 @@ description: "Checks that specifying packages using only a config file works" versions: ["nightly-20210831"] # This CLI version is known to work with package used in this test os: ["ubuntu-latest", "macos-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: ".github/codeql/codeql-config-packaging.yml" diff --git a/pr-checks/checks/packaging-inputs-js.yml b/pr-checks/checks/packaging-inputs-js.yml index 34368581e..85b7741ec 100644 --- a/pr-checks/checks/packaging-inputs-js.yml +++ b/pr-checks/checks/packaging-inputs-js.yml @@ -3,6 +3,8 @@ description: "Checks that specifying packages using the input to the Action work versions: ["nightly-20210831"] # This CLI version is known to work with package used in this test os: ["ubuntu-latest", "macos-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: ".github/codeql/codeql-config-packaging2.yml" diff --git a/pr-checks/checks/remote-config.yml b/pr-checks/checks/remote-config.yml index 8ad8fa073..4b0078db1 100644 --- a/pr-checks/checks/remote-config.yml +++ b/pr-checks/checks/remote-config.yml @@ -1,6 +1,8 @@ name: "Remote config file" description: "Checks that specifying packages using only a config file works" steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/pr-checks/checks/split-workflow.yml b/pr-checks/checks/split-workflow.yml index 97d233c33..7921621e9 100644 --- a/pr-checks/checks/split-workflow.yml +++ b/pr-checks/checks/split-workflow.yml @@ -3,6 +3,8 @@ description: "Tests a split-up workflow in which we first build a database and l versions: ["nightly-20210831"] # This CLI version is known to work with package used in this test os: ["ubuntu-latest", "macos-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: config-file: ".github/codeql/codeql-config-packaging3.yml" diff --git a/pr-checks/checks/test-local-codeql.yml b/pr-checks/checks/test-local-codeql.yml index 99394b5c6..90b910e99 100644 --- a/pr-checks/checks/test-local-codeql.yml +++ b/pr-checks/checks/test-local-codeql.yml @@ -3,6 +3,8 @@ description: "Tests using a CodeQL bundle from a local file rather than a URL" versions: ["nightly-latest"] os: ["ubuntu-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - name: Fetch a CodeQL bundle shell: bash env: diff --git a/pr-checks/checks/unset-environment.yml b/pr-checks/checks/unset-environment.yml index 3a8abd48f..588befb2d 100644 --- a/pr-checks/checks/unset-environment.yml +++ b/pr-checks/checks/unset-environment.yml @@ -2,6 +2,8 @@ name: "Test unsetting environment variables" description: "An end-to-end integration test that unsets some environment variables" os: ["ubuntu-latest"] steps: + - name: Initialize dotnet + run: dotnet restore - uses: ./../action/init with: db-location: "${{ runner.temp }}/customDbLocation"