# How to use custom Gitea Actions

**URL:** <https://forum.gitea.com/t/how-to-use-custom-gitea-actions/7856>\
**Category:** Actions\
**Created:** [September 18, 2023, 8:48am UTC](https://forum.gitea.com/t/how-to-use-custom-gitea-actions/7856 "2023-09-18T08:48:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/stanito/32/4053_2.png) [@Stanito](https://forum.gitea.com/u/Stanito)\
**Post date:** [September 18, 2023, 8:48am UTC](https://forum.gitea.com/t/how-to-use-custom-gitea-actions/7856/1 "2023-09-18T08:48:01Z")

</div>

I have a gitea instance in local domain. I have createad a custom action in repo “emb\_tools/gitea-actions-delete-abandoned-branches@v1” and to use this action in other local repos on the same instance of Gitea. But when i try to run this action, it always says that “authentication required” in set up job step.  
All my repos need to authenticate, so i provide Gitea api token with full admin access.  
I use this article to do this - [Workflow syntax for GitHub Actions - GitHub Docs](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)

The action i want to run is described like this:

```auto
name: Quick tests against our own repository
on:
  push:
jobs:
  cleanup_old_branches:
    runs-on: ubuntu
    name: Testing Actions
    steps:
      - name: Delete git repository old branches
        uses: https://gitea.devos.club/emb_tools/gitea-actions-delete-abandoned-branches@v1
        id: delete_stuff
        with:
          repository: https://gitea.devos.club/
          ref: v1
          token: ${{ secrets.GIT_ACCESS_TOKEN }}
          path: ./.github/actions/my-private-repo

```

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [September 21, 2023, 7:59am UTC](https://forum.gitea.com/t/how-to-use-custom-gitea-actions/7856/2 "2023-09-21T07:59:01Z")

</div>

Yes, you can use absolute action address.

---

<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:** [March 28, 2024, 7:38am UTC](https://forum.gitea.com/t/how-to-use-custom-gitea-actions/7856/3 "2024-03-28T07:38:59Z")

</div>

Did you find a solution to your problem? I experience something similar.
