Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ vcs_github = GitHubProviderFactory(
# These options can be customised with the `VCS_PROVIDER_CONFIG_DICT` option, e.g. by passing it
# as an env var on OpenShift.
webhook_receiver_url="https://CHANGEME.cern.ch/api/hooks/receivers/github/events/?access_token={token}",
config={"insecure_ssl": False, "shared_secret": "CHANGEME"},
config={"insecure_ssl": False, "shared_secret": "CHANGEME", "allowed_repository_type": "public"},
)
vcs_github.repo_list_message = _(
"If your organization's repositories do not show up in the list, please ensure you have enabled third-party access. "
"Only public repositories are shown."
)

vcs_github_oauth_remote_config = vcs_github.oauth_remote_config
Expand All @@ -287,7 +291,11 @@ vcs_gitlab = GitLabProviderFactory(
name="GitLab",
base_url="https://gitlab.cern.ch",
webhook_receiver_url="https://CHANGEME.cern.ch/api/hooks/receivers/gitlab/events/?access_token={token}",
config={"shared_validation_token": "CHANGEME"},
config={"shared_validation_token": "CHANGEME", "allowed_project_visibilities": ["internal", "public"]},
)
vcs_gitlab.repo_list_message = _(
"If your project does not show up in the list, please ensure you have at least the 'Maintainer' role on the project or its group. "
"Only public and internal projects are shown."
)

vcs_gitlab_oauth_remote_config = vcs_gitlab.oauth_remote_config
Expand Down
Loading