Skip to content

Commit 01c45bf

Browse files
committed
Avoid making an API call in test
This call fails since we are explicitly using an invalid token.
1 parent 6eadf13 commit 01c45bf

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/__init-with-registries.yml

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/init-with-registries.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ name: "Packaging: Download using registries"
66
description: "Checks that specifying a registries block and associated auth works as expected"
77
versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs
88

9+
permissions:
10+
# ensure the default token cannot be used to download packs
11+
actions: read
12+
packages: none
13+
914
steps:
1015
- name: Init with registries-auth-tokens
1116
uses: ./../action/init
1217
with:
1318
db-location: "${{ runner.temp }}/customDbLocation"
1419
tools: ${{ steps.prepare-test.outputs.tools-url }}
15-
config-file: ./.github/codeql/codeql-config-query-filters1.yml
20+
config-file: ./.github/codeql/codeql-config-registries.yml
21+
languages: javascript
1622
registries-auth-tokens: https://ghcr.io/v2=${{ secrets.GITHUB_TOKEN }}
17-
# ensure test will fail if registries block is not used
18-
token: i-am-not-a-token
1923
env:
2024
TEST_MODE: true
21-
# ensure test will fail if registries block is not used
22-
GITHUB_TOKEN: i-am-not-a-token
2325
- name: Verify packages installed
2426
run: |
2527
PRIVATE_PACK="$HOME/.codeql/packages/dsp-testing/private-pack"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy