- Notifications
You must be signed in to change notification settings - Fork262
Closed
Description
Question
I'm trying to setup this to work in a Gitea + Gitea runner (act_runner) to work but i get the same error everytime
I dont understand why it's trying to start Github(hvcs_client.remote_url(use_token=False)) when the type is set to gitea
My Gitea instance is accessible athttps://git.mydomain.com (so no insecure connection should happens)
I have tried lot of differents settings, even this repo action but i face the same error everytime :/
Any idea ?
Thanks in advance :)
Configuration
Semantic Release Configuration
[tool.semantic_release]major_on_zero =trueallow_zero_version =falsetag_format ="v{version}"[tool.semantic_release.branches.main]match ="(main|ci/add-semantic-release)"[tool.semantic_release.changelog.default_templates]changelog_file ="CHANGELOG.md"output_format ="md"[tool.semantic_release.remote]name ="origin"type ="gitea"ignore_token_for_push =falseinsecure =false[tool.semantic_release.publish]dist_glob_patterns = []upload_to_vcs_release =true
Additional context
Actions Workflow content
name:Semantic releaseon:workflow_call:inputs:server_domain:description:Domain of the Gitea serverrequired:truetype:stringpython_version:description:Version of Python to userequired:truetype:stringsecrets:semantic_release_token:description:Token for semantic release botrequired:truejobs:semantic-release:runs-on:ubuntu-latestoutputs:version:${{ steps.new_version.outputs.version }}release_new_version:${{ steps.release_new_version.outputs.release_new_version }}steps: -name:Checkoutuses:actions/checkout@v4with:fetch-depth:0 -name:Setup Pythonuses:actions/setup-python@v5with:python-version:${{ inputs.python_version }}cache:'pip' -name:Run semantic releaseenv:GITEA_TOKEN:${{ secrets.semantic_release_token }}GIT_COMMITTER_NAME:"semantic-release-bot"GIT_COMMITTER_EMAIL:"semantic-release@mydomain.com"run:| git remote set-url origin https://${{ secrets.semantic_release_token }}@${{ inputs.server_domain }}/${{ gitea.repository }}.git pip install python-semantic-release semantic-release -vv --noop version --printinputs.server_domain is git.mydomain.com
log
[20:44:04] DEBUG logging level set to: DEBUG main.py:130🛡 You are running in no-operation mode, because the '--noop' flag was supplied DEBUG global cli options: main.py:142 GlobalCommandLineOptions(noop=True, verbosity=2, config_file='pyproject.toml', strict=False) INFO Loading configuration from pyproject.toml util.py:77 DEBUG Trying to parse configuration pyproject.toml in util.py:80 TOML format INFO Using group 'main' options, as config.py:587 '(main|ci/add-semantic-release)' matches 'ci/add-semantic-release' DEBUG Parsing git url helpers.py:245 'https://SR_TOKEN_IS_HERE@git.mydomain.com/user/project.git' DEBUG setting up default session authentication util.py:49 DEBUG inverted tag_format 'v{version}' to translator.py:38 'v(?P<version>.*)' DEBUG Adding redact pattern masking_filter.py:34 ''context.hvcs_client.token'' to redact_patterns DEBUG Adding redact pattern masking_filter.py:34 ''context.hvcs_client.token'' to redact_patterns ValueError: Insecure connections are currently disabled.Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/semantic_release/__main__.py", line 16, in main cli_main(args=sys.argv[1:]) File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/core.py", line 1161, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/core.py", line 1082, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/core.py", line 1697, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/core.py", line 1443, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/core.py", line 788, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/decorators.py", line 45, in new_func return f(get_current_context().obj, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/semantic_release/cli/commands/version.py", line 477, in version else Github(hvcs_client.remote_url(use_token=False)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/semantic_release/hvcs/github.py", line 105, in __init__ domain_url = self._normalize_url( ^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/semantic_release/hvcs/remote_hvcs_base.py", line 198, in _normalize_url RemoteHvcsBase._validate_url_scheme(tgt_url, allow_insecure=allow_insecure) File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/semantic_release/hvcs/remote_hvcs_base.py", line 169, in _validate_url_scheme raise ValueError("Insecure connections are currently disabled.")::ERROR:: Insecure connections are currently disabled.::ERROR:: Insecure connections are currently disabled.