Hello,
We are trying to use template feature in drone version 2.4.0. We have tried it and tested on testing environment, but when we have tried to do the same thing on production we got an error:
drone template add --namespace REPOSITORY_NAME --name test_template.yml --data @test_template.yml
client error 401: {"message":"Forbidden"}
Both environments are configured in the same way, so we don’t know what is the reason behind this issue.
User which I’m using for testing has admin rights on tested repository in github.
Also we have checked that drone admin users are able to run described command without issues.
Can somebody guide us how we can debug this issue, because I see no errors in drone server logs even after enabling them in container configuration?
My logs settings are:
{
name = "DRONE_LOGS_DEBUG"
value = "true"
},
{
name = "DRONE_LOGS_COLOR"
value = "false"
},
{
name = "DRONE_LOGS_PRETTY"
value = "true"
},
{
name = "DRONE_LOGS_TRACE"
value = "true"
}