Closed rajasekhar-gundala closed 2 years ago
You should set a user as admin in woodpecker server.
https://woodpecker-ci.org/docs/administration/server-config#administrators
Only admin can set the trusted repo.
Indeed, I believe it's a UI or document problem, most people do not know this trick (it is not obvious and can not be found easliy, no guide on UI)
I will try to add some hints to the docs at the places it describes the trusted option (https://woodpecker-ci.org/docs/usage/project-settings#trusted).
@rajaseg Where did you found the trusted
option? Was it at the place I linked above?
Also maybe there are some logs about trusted
concept? IIRC if I use the volumes
in a non-trusted repo, some error logs are printed
You should set a user as admin in woodpecker server.
https://woodpecker-ci.org/docs/administration/server-config#administrators
Only admin can set the trusted repo.
Indeed, I believe it's a UI or document problem, most people do not know this trick (it is not obvious and can not be found easliy, no guide on UI)
@wxiaoguang Thank you very much for the tip. I added the environment variable - WOODPECKER_ADMIN=admin
to the docker-compose and re-deployed the stack. Now I can see the option "Trusted" under the Project settings of the repository.
I will try to add some hints to the docs at the places it describes the trusted option (https://woodpecker-ci.org/docs/usage/project-settings#trusted).
@rajaseg Where did you found the
trusted
option? Was it at the place I linked above?
@anbraten Yes, that's the link where we need to hint users how to enable it.
we could "grey out" it as "disabled" so it's visible ... and show a hint on mouse over that only admins can use this option ?
I am trying to build and publish Docker image using Dockerfile. I have a repository in Gitea. I am getting a "The step has been cancelled" error for the clone step. Please find the screenshot below.
Here is my pipeline
pipeline:
publish:
image: plugins/docker
group: docker
secrets: [ docker_username, docker_password ]
settings:
repo: dockerregistry/reponame
dockerfile: Dockerfile
tag: latest
when:
branch: master
event: push
Am I missing or doing anything wrong?
we could "grey out" it as "disabled" so it's visible ... and show a hint on mouse over that only admins can use this option ?
I think we should keep things simple and add the hint to the docs as that was the place this question initially came from. Normally a user would not notice that something is missing at all, if he is not reading the docs before.
Component
server, web-ui
Describe the bug
The "Trusted" option is missing under Project settings for the repository. I can see only "Allow Pull Requests" and "Protected".
System Info
I am using Caddy Server in front of Woodpecker and Gitea.
Docker Compose
Caddyfile
Additional context
No response
Validations