@@ -10,9 +10,34 @@ inputs: |
10 | 10 | description: The languages to be analysed |
11 | 11 | required: false |
12 | 12 | token: |
| 13 | + description: GitHub token to use for authenticating with this instance of GitHub. To download custom packs from multiple registries, use the registries input. |
13 | 14 | default: ${{ github.token }} |
| 15 | + required: false |
| 16 | + registries: |
| 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 | +
|
| 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): |
| 21 | +
|
| 22 | + registries: | |
| 23 | + - url: https://containers.GHEHOSTNAME1/v2/ |
| 24 | + packages: |
| 25 | + - my-company/* |
| 26 | + - my-company2/* |
| 27 | + token: \$\{{ secrets.GHEHOSTNAME1_TOKEN }} |
| 28 | +
|
| 29 | + - url: https://ghcr.io/v2/ |
| 30 | + packages: */* |
| 31 | + token: \$\{{ secrets.GHCR_TOKEN }} |
| 32 | +
|
| 33 | + The `url` property contains the URL to the container registry you want to connect to. |
| 34 | +
|
| 35 | + The `packages` property contains a single glob string or a list of glob strings, specifying which packages should be retrieved from this particular container registry. Order is important. Earlier entries will match before later entries. |
| 36 | +
|
| 37 | + The `token` property contains a connection token for this registry. required: false |
14 | 38 | matrix: |
15 | 39 | default: ${{ toJson(matrix) }} |
| 40 | + required: false |
16 | 41 | config-file: |
17 | 42 | description: Path of the config file to use |
18 | 43 | required: false |
@@ -32,7 +57,7 @@ inputs: |
32 | 57 | analyses, you must specify packs in the codeql-config.yml file. |
33 | 58 | required: false |
34 | 59 | external-repository-token: |
35 | | - description: A token for fetching external config files and queries if they reside in a private repository. |
| 60 | + description: A token for fetching external config files and queries if they reside in a private repository in the same GitHub instance that is running this action. |
36 | 61 | required: false |
37 | 62 | setup-python-dependencies: |
38 | 63 | description: Try to auto-install your python dependencies |
@@ -82,4 +107,4 @@ outputs: |
82 | 107 | runs: |
83 | 108 | using: 'node16' |
84 | 109 | main: '../lib/init-action.js' |
85 | | - post: '../lib/init-action-post.js' |
| 110 | + post: '../lib/init-action-post.js' |