[go: up one dir, main page]

Skip to content

Access RAW files content by using a repository Deploy Token.

Please refer to this issue #22432 (closed)

It would be really nice if a deploy token have access to raw files.

The only work-around I've found so far is to create a fake account, generate an impersonation token for the fake account, and use the API to fetch the raw files. ie: curl -H "PRIVATE-TOKEN: XXXX" https://gitlab.example.com/api/v4/projects/user%2repository/repository/files/README.md/raw?ref=master

If deploy tokens could access raw files it would be a lot let hassle to set up and the request would be much more readable. ie:

curl https://deploy-user:XXX@gitlab.example.com/user/repository/raw/master/README.md

As it was created a year ago and nobody is answering anything there I reopened as a new one here. This is a MUST HAVE feature. It does not make sense to have a FAKE account just to have personal tokens to access the repository files when this is something that the Deploy Token should be able to do.

Greetings.

Edited by Jorge F. Sánchez