An engineer left the company today. What do you do on the Git side?
BeginnerScenarioSecrets, Signing and Security
Answer
Situation read → Access must be removed quickly and completely.
What I'd do →
- Remove from the GitHub organisation, or disable via SSO or SCIM deprovisioning.
- Check for personal tokens, deploy keys and apps they authorised (org settings list these).
- Reassign their open PRs and CODEOWNERS entries to a team.
- Rotate shared secrets they knew.
Why → Central identity (SSO) makes this a single step instead of a checklist hunt.
Interview tip → Teams as code owners avoid orphaned review rules.
More on Secrets, Signing and Security
A developer pushed an AWS access key to a public repo 10 minutes ago. What is your first move?BeginnerAfter rotating the leaked key, you must purge it from repository history. How?AdvancedA push is rejected: "GH013: Repository rule violations found ... Push cannot contain secrets". What do you do?IntermediateSecret scanning alerts have piled up, and many look like false positives or old test credentials.IntermediateYou must set up signed commits on your laptop. Which method do you pick?BeginnerYour GPG signing key expires next week. What is the correct way to handle it?Intermediate