Steps to reproduce the issue. (I have tried with several repositories.)
- Have an account with more than one repository.
- Visit repository 1 -> settings -> deploy key and create new deploy Key with “KEY 1”
- Visit repository 2 -> settings -> deploy key and try to add “KEY 1” as new deploy key to “repository 2” . User will see “Key is already in use” error message.
I believe it should no check for uniqueness of deploy key across all repositories!