Skip to content

Commit 92a9738

Browse files
committed
Docs: Fix precedence of registries list
1 parent 3bb51c2 commit 92a9738

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/codeql/codeql-cli/publishing-and-using-codeql-packs.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ For example, the following ``qlconfig.yml`` file associates all packs with the C
9090
.. code-block:: yaml
9191
9292
registries:
93-
- packages: '*'
94-
url: https://containers.GHE_HOSTNAME/v2/
9593
- packages: 'codeql/*'
9694
url: https://ghcr.io/v2/
95+
- packages: '*'
96+
url: https://containers.GHE_HOSTNAME/v2/
97+
98+
The CodeQL CLI will determine which registry to use for a given package name by finding the first item in the ``registries`` list with a ``packages`` property that matches that package name.
99+
This means that you'll generally want to define the most specific package name patterns first.
97100

98101
You can now use ``codeql pack publish``, ``codeql pack download``, and ``codeql database analyze`` to manage packs on GitHub Enterprise Server.
99102

0 commit comments

Comments
 (0)