GitLab check
Project has deploy keys configured with write access
Trigger condition
At least one of the project's deploy keys has can_push set to true.
Evidence
States the count and sorted, deduplicated numeric IDs of every deploy key configured with write access.
Impact
A write-enabled deploy key lets automation authenticate to this repository with its own SSH credential, independent of any individual user's own key. GitLab associates every deploy key with an account. This finding reports only the key's configured write permission (can_push) -- not that the key is currently usable: whether it can actually push right now still depends on the key's expiration date, that associated account's status, and any branch protection rules that restrict who or what can push to a given branch, so an expired or blocked key should not be assumed usable merely because it is reported here. Review unused write-enabled deploy keys and revoke any that are no longer needed. See GitLab's own deploy key documentation (https://docs.gitlab.com/user/project/deploy_keys/).
Recommendation
Identify the automation or workflow that uses each listed key. Revoke any deploy key that is no longer in use, and switch a key used only for clone or fetch operations to read-only. Before changing an active key, verify the workflow that depends on it to avoid breaking it. See the Deploy keys API (https://docs.gitlab.com/api/deploy_keys/) and deploy key permissions and security (https://docs.gitlab.com/user/project/deploy_keys/).
Important limitations
This check evaluates only each key's own configured can_push setting -- it never confirms whether the key has actually been used to push, and never inspects key expiration, account status, or branch protection rules that may also restrict effective access. A malformed individual deploy-key record (not an object, or missing a valid id) is skipped with a sanitized warning rather than aborting the check. If the deploy-keys list is unavailable (e.g. a 403 or 404), this check is skipped for the audit run rather than reporting a false clean result.