Skip to content

PythonUnited/clean-up-gitlab-deploy-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts to clean up Gitlab deploy keys

Install dependencies:

pip install -r requirements.txt

In the src directory copy env-example to .env` file, and edit to add Gitlab URL and API access token:

cp env-example .env

Read deploy keys

python list_deploy_keys.py

Add numeric IDs of deploy keys which need to be delete to a file name deploy_keys.txt, each deploy key ID on a new line.

Delete deploy keys

python delete_deploy_keys.py

This script list the deploy keys which are about to be deleted and ask for confirmation before deleting.

About

Scripts to clean up Gitlab deploy keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages