What Expira finds
Revoked tokens are removed. Tokens that expired more than 30 days ago are dropped.
Create a token
Create a personal access token in GitLab with theread_api scope and an expiry date.
To list every user’s tokens on a self-managed instance, use an administrator’s token and add the admin_mode scope.
Add the connection in Expira
1
Open the form
Go to Integrations → GitLab → Add connection.
2
Fill in the details
- Display name, for example “GitLab.com” or “Internal GitLab”.
- GitLab URL:
https://gitlab.com, or your instance such ashttps://gitlab.example.com. - Personal Access Token (starts with
glpat-).
3
Choose the projects
- All projects I have access to scans every project the token is a member of.
- Specific projects scans only the project IDs you list, comma-separated, such as
123, 456. The project ID is on the project’s main page, below its name.
4
Sync
Save, then press Sync.
Self-managed GitLab
The URL must usehttps and be reachable from the public internet. Expira first checks the token with GET /user; an instance that only resolves on a VPN, or through a local hosts file, fails with one clear error instead of a list of failures. See Troubleshooting.