From 0308a5d8048f6cde8074e02f19c0ec071229537e Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Tue, 30 Aug 2022 10:16:49 -0700 Subject: [PATCH] Avoid making an API call in test This call fails since we are explicitly using an invalid token. --- .github/workflows/__init-with-registries.yml | 6 +----- pr-checks/checks/init-with-registries.yml | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index 421de335e2..ecd978cbc8 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -63,14 +63,10 @@ jobs: with: db-location: ${{ runner.temp }}/customDbLocation tools: ${{ steps.prepare-test.outputs.tools-url }} - config-file: ./.github/codeql/codeql-config-query-filters1.yml + config-file: ./.github/codeql/codeql-config-registries.yml registries-auth-tokens: https://ghcr.io/v2=${{ secrets.GITHUB_TOKEN }} - # ensure test will fail if registries block is not used - token: i-am-not-a-token env: TEST_MODE: true - # ensure test will fail if registries block is not used - GITHUB_TOKEN: i-am-not-a-token - name: Verify packages installed run: | PRIVATE_PACK="$HOME/.codeql/packages/dsp-testing/private-pack" diff --git a/pr-checks/checks/init-with-registries.yml b/pr-checks/checks/init-with-registries.yml index 0e00e09d5a..b2b6099eec 100644 --- a/pr-checks/checks/init-with-registries.yml +++ b/pr-checks/checks/init-with-registries.yml @@ -12,14 +12,10 @@ steps: with: db-location: "${{ runner.temp }}/customDbLocation" tools: ${{ steps.prepare-test.outputs.tools-url }} - config-file: ./.github/codeql/codeql-config-query-filters1.yml + config-file: ./.github/codeql/codeql-config-registries.yml registries-auth-tokens: https://ghcr.io/v2=${{ secrets.GITHUB_TOKEN }} - # ensure test will fail if registries block is not used - token: i-am-not-a-token env: TEST_MODE: true - # ensure test will fail if registries block is not used - GITHUB_TOKEN: i-am-not-a-token - name: Verify packages installed run: | PRIVATE_PACK="$HOME/.codeql/packages/dsp-testing/private-pack"