Cannot download artifacts from a private repo

In my Artifacts.toml file I put the link to the raw file that I want to download from gitlab.
But since my project is private I am getting the error:

Error: RequestError: HTTP/2 404 while requesting https://<my link to the file>

I also checked that when I am connected to gitlab, the link downloads the file, but when I am not connected I get a 404 error.

Is there the possibility to give access to this file ? Maybe by puting an access token in the Artifacts.toml file ?