GitLab

Setting up Profile Graphics with the GitLab API, including self-hosted instances.

Creating a token

Go to GitLab → User Settings → Access Tokens. Create a token with the following scopes:

read_api read_user read_repository

Config example (gitlab.com)

profile-graphics.yml
provider:
  type: gitlab
  user: your-gitlab-username
  token: ${GL_TOKEN}

Self-hosted GitLab

profile-graphics.yml
provider:
  type: gitlab
  user: your-username
  token: ${GL_TOKEN}
  gitlab_base_url: https://gitlab.your-company.com
Workflow input
- uses: mikhailkhorokhorin/profile-graphics@v1
  with:
    provider: gitlab
    username: your-gitlab-username
    token: ${{ secrets.GL_TOKEN }}
    gitlab_url: https://gitlab.your-company.com
    charts: activity,langs,streak,summary

GitLab API notes

Troubleshooting

401 Unauthorized — token is invalid or expired. Create a new one in User Settings → Access Tokens.
GitLab user not found — check the username spelling. GitLab usernames are case-sensitive.
For private self-hosted instances, ensure gitlab_base_url is reachable from GitHub Actions runners (they may not have access to internal networks).