Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot clone local actions with self-signed cert #28693

Closed
GammaGames opened this issue Jan 4, 2024 · 3 comments
Closed

Cannot clone local actions with self-signed cert #28693

GammaGames opened this issue Jan 4, 2024 · 3 comments
Labels
topic/gitea-actions related to the actions of Gitea type/bug

Comments

@GammaGames
Copy link

Description

My app.ini has the following:

[actions]
ENABLED = true
DEFAULT_ACTIONS_URL = self

And my runner's config.yaml has:

runner:
  insecure: true

I have an action hosted on the server, but when I try to run the action with uses: Actions/test-action@main it fails with:

Extracting content to '/var/run/act/'
  ☁  git clone 'https://gitea-domain/Actions/test-action' # ref=main
  cloning https://gitea-domain/Actions/test-action to /root/.cache/act/Actions-test-action@main
Unable to clone https://gitea-domain/Actions/test-action refs/heads/main: Get "https://gitea-domain/Actions/test-action/info/refs?service=git-upload-pack": tls: failed to verify certificate: x509: certificate signed by unknown authority
Get "https://gitea-domain/Actions/test-action/info/refs?service=git-upload-pack": tls: failed to verify certificate: x509: certificate signed by unknown authority

Gitea Version

1.21.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker (both gitea and the runner)

Database

None

@techknowlogick techknowlogick added the topic/gitea-actions related to the actions of Gitea label Jan 4, 2024
@Zettat123
Copy link
Contributor

It's a bug on the act_runner side. The insecure option should work when cloning a repository from the Gitea instance

@lunny lunny added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Feb 28, 2024
@Zettat123
Copy link
Contributor

I've created a pull request to support cloning actions from the Gitea instance when the insecure option is true

@Zettat123 Zettat123 removed the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Feb 29, 2024
@lunny
Copy link
Member

lunny commented Feb 29, 2024

Close as it's only act/act_runner related.

@lunny lunny closed this as completed Feb 29, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/gitea-actions related to the actions of Gitea type/bug
Projects
None yet
Development

No branches or pull requests

4 participants