Octoherd script to help with the recent CircleCI’s security breach by removing deploy keys from your repos.
No warranty, use at your own risk!
Run the script on a single repo first. Octoherd will prompt to confim the deletion request.
npx @octoherd/cli run -T $GITHUB_TOKEN -S ./script.mjs -R 'your-org/some-repo'
Now run the script across your org. Again no, warranty, use this script at your own risk.
npx @octoherd/cli run -T $GITHUB_TOKEN -S ./script.mjs -R 'your-org/*'
There might be deploy keys named slightly differnt, watch the logs closely.