-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Cant run Gitea Actions from private Repo #26032
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
Comments
Have you set a right secret with Actually, you don't need to do this. The runner will get a temporary token to checkout the repo even it's private. Please try again without - name: Check out repository code
uses: actions/checkout@v3 |
secret is set and it can clone successful - without it cant (login on gitea instance is required). This is the job from the github hello world action (https://github.com/actions/hello-world-docker-action), hosted on my own gitea server. jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Hello world action step
id: hello
uses: https://gitea..####/actions/hello-world-docker-action@main
with:
who-to-greet: 'test action'
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}" |
So the point is that your runner failed with Now it's duplicated with #25929 |
Clone via Personal Access Token is working. This can show me the content of my repo:
So my main question is, why running a action from local cloned content is not possible on the runner? |
It is not supported yet. |
Description
I have a private Repo with an example action.
Its totaly clear to me, that the runner can not clone this private repo without authentication.
So i use the checkout action with a personal access token and clone the action repo to the runner.
After that i try to run the action as follwing:
But this does not work.
I have seen, that the Github docs show exactly this tooling for private repos.
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-an-action-inside-a-different-private-repository-than-the-workflow
Also i cant find any clear instructions or documentation, how to deal with private repos in actions on gitea.
Gitea Version
1.20.0
Operating System
Debian Linux
How are you running Gitea?
Running via docker in an debian Linux hosted inside a VPS (LXC)
The text was updated successfully, but these errors were encountered: