Before deploying, you want to confirm a release tag and commit were really created by your maintainers.
BeginnerScenarioSecrets, Signing and Security
Answer
Situation read → Signed tags and commits can be verified.
What I'd do →
git verify-tag v2.5.0andgit verify-commit <sha>.git log --show-signature -1 v2.5.0.- Make sure the signer's key is trusted (allowed signers file for SSH, keyring for GPG).
- Fail the pipeline if verification fails.
Why → A valid signature proves the key holder created it, not that the content is safe.
Interview tip → Signature plus branch protection plus review gives a real chain of trust.
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