# Renovate permission issues

**URL:** <https://forum.gitea.com/t/renovate-permission-issues/8948>\
**Category:** Actions\
**Created:** [April 8, 2024, 6:25pm UTC](https://forum.gitea.com/t/renovate-permission-issues/8948 "2024-04-08T18:25:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bolsblue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/bolsblue/32/4593_2.png) [@bolsblue](https://forum.gitea.com/u/bolsblue)\
**Post date:** [April 8, 2024, 6:25pm UTC](https://forum.gitea.com/t/renovate-permission-issues/8948/1 "2024-04-08T18:25:48Z")

</div>

Hi there!

I’m having issues configuring renovate with gitea.  
When renovate-bot tries to lookup git-tags on my gitea instance itself, it runs into permission issues:

```auto
DEBUG: Datasource unknown error (repository=user/renovate-test)
       "datasource": "git-tags",
       "packageName": "https://git.domain.tld/user/tag-test",
       "err": {
         "task": {
           "commands": ["ls-remote", "https://git.domain.tld/user/tag-test"],
           "format": "utf-8",
           "parser": "[function]"
         },
        "message": "remote: User permission denied\nfatal: unable to access 'https://git.domain.tld/user/tag-test/': The requested URL returned error: 403\n",
        "stack": "Error: remote: User permission denied\nfatal: unable to access 'https:// **redacted** @3.24.0/node_modules/simple-git/src/lib/plugins/error-detection.plugin.ts:42:29)\n at PluginStore.exec (/usr/local/renovate/node_modules/.pnpm/simple-git@3.24.0/node_modules/simple-git/src/lib/plugins/plugin-store.ts:54:29)\n at /usr/local/renovate/node_modules/.pnpm/simple-git@3.24.0/node_modules/simple-git/src/lib/runners/git-executor-chain.ts:124:42\n at new Promise (<anonymous>)\n at GitExecutorChain.handleTaskData (/usr/local/renovate/node_modules/.pnpm/simple-git@3.24.0/node_modules/simple-git/src/lib/runners/git-executor-chain.ts:121:14)\n at GitExecutorChain.<anonymous> (/usr/local/renovate/node_modules/.pnpm/simple-git@3.24.0/node_modules/simple-git/src/lib/runners/git-executor-chain.ts:97:40)\n at Generator.next (<anonymous>)\n at fulfilled (/usr/local/renovate/node_modules/.pnpm/simple-git@3.24.0/node_modules/simple-git/dist/cjs/index.js:52:24)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"
       }

```

My action config:

```auto
name: renovate

on:
  schedule:
    - cron: '0 0 * * *'
  push:
    branches:
      - main

jobs:
  renovate:
    runs-on: "self-hosted"
    container: 
      image: renovate/renovate:37
    steps:
      - uses: actions/checkout@v4
      - run: renovate
        env:
          RENOVATE_CONFIG_FILE: "/workspace/${{ github.repository }}/config.js"
          RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
          LOG_LEVEL: "debug"

```

renovate config.js:

```auto
module.exports = {
	endpoint: "https://git.domain.tls/api/v1/",
	gitAuthor: "Renovate Bot <renovate@domain.tld>",
	username: 'renovate-bot',
	platform: "gitea",
	token: process.env.RENOVATE_TOKEN,
	autodiscover: true,
	hostRules: [
		{
		  matchHost: "git.domain.tld",
		  hostType: "gitea",
		  username: "renovate-bot",
		  password: process.env.RENOVATE_TOKEN
		}
	]
}

```

That’s funny because running renovate locally or in a container on my act\_runner host, everything works as intended. So this is NOT a permission issue per se.

I added the hostRules because I thought that there might be a problem, but that didn’t help.

So, what might be different from running the container manually to running it via gitea actions?

I have spent days trying to debug this. Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![mrwsl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mrwsl/32/4910_2.png) [@mrwsl](https://forum.gitea.com/u/mrwsl)\
**Post date:** [September 27, 2024, 5:59am UTC](https://forum.gitea.com/t/renovate-permission-issues/8948/2 "2024-09-27T05:59:32Z")

</div>

Did you find a solution to your problem?

---

<div class="post-metadata">

**Author:** ![bolsblue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/bolsblue/32/4593_2.png) [@bolsblue](https://forum.gitea.com/u/bolsblue)\
**Post date:** [October 7, 2024, 5:21pm UTC](https://forum.gitea.com/t/renovate-permission-issues/8948/3 "2024-10-07T17:21:41Z")

</div>

I’m using the official renovate github action which works as intended.

> **[GitHub - renovatebot/github-action](https://github.com/renovatebot/github-action)**
>
> Contribute to renovatebot/github-action development by creating an account on GitHub.
