You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: rename domain to hostname in Git service configuration (#453)
Rename the attribute `domain` to `hostname` in Git service sections in Macaron's .ini config.
---------
Signed-off-by: Nathan Nguyen <nathan.nguyen@oracle.com>
Copy file name to clipboardExpand all lines: docs/source/pages/using.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,15 +78,15 @@ Analyzing a repository on a self-hosted GitLab instance
78
78
79
79
To analyze a repository on a self-hosted GitLab instance, you need to do the following:
80
80
81
-
- Add the following ``[git_service.gitlab.self_hosted]`` section into your ``.ini`` config. In the default .ini configuration (generated using ``macaron dump-default`` -- :ref:`see instructions <action_dump_defaults>`), there is already this section commented out. You can start by un-commenting this section and modifying the ``domain`` value with the domain of your self-hosted GitLab instance.
81
+
- Add the following ``[git_service.gitlab.self_hosted]`` section into your ``.ini`` config. In the default .ini configuration (generated using ``macaron dump-default`` -- :ref:`see instructions <action_dump_defaults>`), there is already this section commented out. You can start by un-commenting this section and modifying the ``hostname`` value with the hostname of your self-hosted GitLab instance.
82
82
83
83
.. code-block:: ini
84
84
85
85
# Access to a self-hosted GitLab instance (e.g. your organization's self-hosted GitLab instance).
86
86
# If this section is enabled, an access token must be provided through the ``MCN_SELF_HOSTED_GITLAB_TOKEN`` environment variable.
87
87
# The `read_repository` permission is required for this token.
88
88
[git_service.gitlab.self_hosted]
89
-
domain = internal.gitlab.org
89
+
hostname = internal.gitlab.org
90
90
91
91
- Obtain a GitLab access token having at least the ``read_repository`` permission and store it into the ``MCN_SELF_HOSTED_GITLAB_TOKEN`` environment variable. For more detailed instructions, see `GitLab documentation <https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token>`_.
92
92
@@ -100,7 +100,7 @@ To simplify the examples, we use the same configurations as above if needed (e.g
100
100
101
101
.. code-block::
102
102
103
-
pkg:<git_service_domain>/<organization>/<name>
103
+
pkg:<git_service_hostname>/<organization>/<name>
104
104
105
105
The list bellow shows examples for the corresponding PURL strings for different git repositories:
0 commit comments