Providers
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
-
Contributions via
/api/v4/users/:id/contributions_chart— available for the current and previous year only - Repository languages are returned as percentages, not bytes — normalized automatically
- Merge Requests and Issues are counted from your own repositories only
- Review stats are not supported by the GitLab REST API — displayed as 0
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).