> For the complete documentation index, see [llms.txt](https://docs.exile.watch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exile.watch/projects/doryani/actions/authenticate-to-github-package-registry.md).

# Authenticate to GitHub Package Registry

Action designed to automate the authentication process with GitHub Package Registry

<figure><img src="https://694473604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOzA1rSlMPE3i2X5tlqgu%2Fuploads%2FZCdzczA729HO2CsFnhUE%2Fimage.png?alt=media&amp;token=3373666c-de2d-4ae5-985d-8c0be1fbeadd" alt="" width="200"><figcaption><p>exile.watch logo</p></figcaption></figure>

{% hint style="info" %}
This page covers [`auth-github-registry*`](https://github.com/exile-watch/doryani/blob/main/auth-github-registry/action.yml)  actions
{% endhint %}

## Usage

In `.github/workflows/auth-github-registry.yml` paste following snippet:

```yaml
name: "Auth to GitHub registry: @exile-watch / doryani"

on:
  push:
    branches:
      - main

jobs:
  auth-github-registry:
    runs-on: ubuntu-latest
    steps:
      - name: Authenticate to GitHub Registry
        uses: exile-watch/doryani/auth-github-registry@main
        with:
          GH_TOKEN: ${{ inputs.GH_TOKEN }}
```
