Skip to content

Commit

Permalink
Avoid making an API call in test
Browse files Browse the repository at this point in the history
This call fails since we are explicitly using an invalid token.
  • Loading branch information
aeisenberg committed Aug 30, 2022
1 parent 6eadf13 commit 0308a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/__init-with-registries.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions pr-checks/checks/init-with-registries.yml
Expand Up @@ -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"
Expand Down

0 comments on commit 0308a5d

Please sign in to comment.