Verifying Code Identity
Supply chain attacks often involve impersonating developers. GPG (GNU Privacy Guard) allows you to sign your Git commits.
Steps:
- Generate GPG Key:
gpg --full-generate-key. - Add public key to GitHub/GitLab.
- Configure Git to sign commits:
git config --global commit.gpgsign true.
Now, every commit has a 'Verified' badge, proving it came from you.