Skip to content

API Call to Get Repository Mirror SSH Key

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

As far as I can find in the documentation, there is no way through CLI to fetch the SSH Public Key for a mirrored repository (pushing from GitLab). There are calls to fetch user SSH keys - would it be possible to implement / do there already exist calls for this?

For example, something like: curl --request GET --header "PRIVATE-TOKEN: {GITLAB_TOKEN}" "https://gitlab.com/api/v4/projects/19768193/keys"

Edited by 🤖 GitLab Bot 🤖