GeezerVison is showing github.com — Clarify description of `registries` input · github/codeql-action@376fea6
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/__init-with-registries.yml +3-7Lines changed: 3 additions & 7 deletions Collapse file
Copy file name to clipboardExpand all lines: init/action.yml +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,18 +15,20 @@ inputs: |
15 | 15 | required: false |
16 | 16 | registries: |
17 | 17 | description: | |
| 18 | + Use this input only when you need to download CodeQL packages from another instance of GitHub. If you only need to download packages from this GitHub instance, use the token input instead. |
| 19 | +
|
18 | 20 | A YAML string that defines the list of GitHub container registries to use for downloading packs. The string is in the following form (the | is required on the first line): |
19 | 21 |
|
20 | 22 | registries: | |
21 | 23 | - url: https://containers.GHEHOSTNAME1/v2/ |
22 | 24 | packages: |
23 | 25 | - my-company/* |
24 | 26 | - my-company2/* |
25 | | - token: ${{ secrets.GHEHOSTNAME1_TOKEN }} |
| 27 | + token: \$\{{ secrets.GHEHOSTNAME1_TOKEN }} |
26 | 28 |
|
27 | 29 | - url: https://ghcr.io/v2/ |
28 | 30 | packages: */* |
29 | | - token: ${{ secrets.GHCR_TOKEN }} |
| 31 | + token: \$\{{ secrets.GHCR_TOKEN }} |
30 | 32 |
|
31 | 33 | The url property contains the URL to the container registry you want to connect to. |
32 | 34 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: lib/config-utils.test.js +1-1Lines changed: 1 addition & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: lib/config-utils.test.js.map +1-1Lines changed: 1 addition & 1 deletion Collapse file
Copy file name to clipboardExpand all lines: pr-checks/checks/init-with-registries.yml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
15 | 15 | config-file: ./.github/codeql/codeql-config-registries.yml |
16 | 16 | languages: javascript |
17 | 17 | registries: | |
18 | | - - url: "https://ghcr.io/v2/", |
19 | | - packages: "*/*", |
| 18 | + - url: "https://ghcr.io/v2/" |
| 19 | + packages: "*/*" |
20 | 20 | token: "${{ secrets.GITHUB_TOKEN }}" |
21 | 21 |
|
22 | 22 | env: |
|
Collapse file
Copy file name to clipboardExpand all lines: src/config-utils.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2296,7 +2296,7 @@ test("downloadPacks-with-registries", async (t) => { |
2296 | 2296 | t.deepEqual(process.env.GITHUB_TOKEN, sampleApiDetails.auth); |
2297 | 2297 | t.deepEqual( |
2298 | 2298 | process.env.CODEQL_REGISTRIES_AUTH, |
2299 | | - "http://ghcr.io=not-a-token,https://containers.GHEHOSTNAME1/v2/=still-a-token" |
| 2299 | + "http://ghcr.io=not-a-token,https://containers.GHEHOSTNAME1/v2/=still-not-a-token" |
2300 | 2300 | ); |
2301 | 2301 |
|
2302 | 2302 | // verify the config file contents were set correctly |
|