diff --git a/.github/workflows/__debug-artifacts.yml b/.github/workflows/__debug-artifacts.yml index fe873d251..313f10f2c 100644 --- a/.github/workflows/__debug-artifacts.yml +++ b/.github/workflows/__debug-artifacts.yml @@ -41,8 +41,6 @@ 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 5f700d23b..2e71b5cff 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -44,8 +44,6 @@ 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 4e0b064f0..d7b43c477 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -41,8 +41,6 @@ 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 7bd08c291..824a0041b 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -35,8 +35,6 @@ 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 759a08e8d..0a2ece98a 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -35,8 +35,6 @@ 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 08e724a28..686d6f32f 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -35,8 +35,6 @@ 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 84aa3c81d..de01cd994 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -44,8 +44,6 @@ 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 3520aca93..dc9d41116 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -35,8 +35,6 @@ 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 6d9389064..c2e067cd5 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -35,8 +35,6 @@ 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 0ca4cb25c..fbff545d5 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -41,8 +41,6 @@ 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 adf567f55..704f9e31d 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -163,9 +163,6 @@ jobs: cd ../action/runner npm install npm run build-runner - - - name: Initialize dotnet - run: dotnet restore - name: Run init run: | @@ -203,9 +200,6 @@ jobs: cd ../action/runner npm install npm run build-runner - - - name: Initialize dotnet - run: dotnet restore - name: Run init run: | @@ -252,9 +246,6 @@ 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 ee8ae8dd6..fd852f38e 100644 --- a/pr-checks/checks/debug-artifacts.yml +++ b/pr-checks/checks/debug-artifacts.yml @@ -2,8 +2,6 @@ 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 99a9351bb..c17b9348a 100644 --- a/pr-checks/checks/go-custom-queries.yml +++ b/pr-checks/checks/go-custom-queries.yml @@ -1,8 +1,6 @@ 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 a6d3d1cfe..c9238b9b9 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -2,8 +2,6 @@ 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 abd84188b..eb5a69337 100644 --- a/pr-checks/checks/packaging-config-inputs-js.yml +++ b/pr-checks/checks/packaging-config-inputs-js.yml @@ -3,8 +3,6 @@ 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 4e6eaa5bb..6a8c5135c 100644 --- a/pr-checks/checks/packaging-config-js.yml +++ b/pr-checks/checks/packaging-config-js.yml @@ -3,8 +3,6 @@ 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 85b7741ec..34368581e 100644 --- a/pr-checks/checks/packaging-inputs-js.yml +++ b/pr-checks/checks/packaging-inputs-js.yml @@ -3,8 +3,6 @@ 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 4b0078db1..8ad8fa073 100644 --- a/pr-checks/checks/remote-config.yml +++ b/pr-checks/checks/remote-config.yml @@ -1,8 +1,6 @@ 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 7921621e9..97d233c33 100644 --- a/pr-checks/checks/split-workflow.yml +++ b/pr-checks/checks/split-workflow.yml @@ -3,8 +3,6 @@ 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 90b910e99..99394b5c6 100644 --- a/pr-checks/checks/test-local-codeql.yml +++ b/pr-checks/checks/test-local-codeql.yml @@ -3,8 +3,6 @@ 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 588befb2d..3a8abd48f 100644 --- a/pr-checks/checks/unset-environment.yml +++ b/pr-checks/checks/unset-environment.yml @@ -2,8 +2,6 @@ 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"