Interview Prep/Git & GitHub/Secrets, Signing and Security

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 →

  1. git verify-tag v2.5.0 and git verify-commit <sha>.
  2. git log --show-signature -1 v2.5.0.
  3. Make sure the signer's key is trusted (allowed signers file for SSH, keyring for GPG).
  4. 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Secrets, Signing and Security