Skip to content

Bring attention to git config tag.gpgsign true for parity with auto-signing commits#43817

Merged
Sharra-writes merged 2 commits intogithub:mainfrom
ara303:fix/default-sign-tags
Apr 14, 2026
Merged

Bring attention to git config tag.gpgsign true for parity with auto-signing commits#43817
Sharra-writes merged 2 commits intogithub:mainfrom
ara303:fix/default-sign-tags

Conversation

@ara303
Copy link
Copy Markdown
Contributor

@ara303 ara303 commented Apr 14, 2026

Why:

Closes: #43662

What's being changed (if available, include any code snippets, screenshots, or gifs):

Please see the issue mentioned above for a more detailed explanation, but in short this brings the docs for Signing tags to parity with the docs for Signing commits.

Previously the former lacked a "Tip" calling out that git config --global tag.gpgsign true is available, and is advantageous in that it allows the user to have automatic signing of tags (in other words, no need to pass the -S flag when tagging).

This is a low impact change, really just a "nice-to-have", to surface the option of automatic tag signing.

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

Copilot AI review requested due to automatic review settings April 14, 2026 19:16
@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
authentication/managing-commit-signature-verification/signing-tags.md fpt
ghec
ghes@ 3.20 3.19 3.18 3.17 3.16 3.15 3.14
fpt
ghec
ghes@ 3.20 3.19 3.18 3.17 3.16 3.15 3.14

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@ara303 ara303 changed the title Bring attention to git config tag.gpgsign true for parity with auto-signing commits Bring attention to git config tag.gpgsign true for parity with auto-signing commits Apr 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a documentation tip to the “Signing tags” article to highlight tag.gpgsign configuration for automatically signing tags, aligning the article more closely with the “Signing commits” guidance.

Changes:

  • Added a new [!TIP] callout describing how to enable default tag signing via git config tag.gpgsign true / --global.

{% data reusables.gpg.desktop-support-for-commit-signing %}

> [!TIP]
> To configure your Git client to sign tags by default for a local repository, in Git versions 2.23.0 and above, run `git config tag.gpgsign true`. To sign all tags by default in any local repository on your computer, run `git config --global tag.gpgsign true`.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TIP claims tag.gpgsign requires Git 2.23.0+, but the analogous TIP in signing-commits.md uses Git 2.0.0+ for commit.gpgsign. Since this PR’s stated goal is parity, either align the minimum Git version here with the commits article or add a reference/justification for why tag auto-signing has a different minimum supported version (to avoid misleading readers).

Suggested change
> To configure your Git client to sign tags by default for a local repository, in Git versions 2.23.0 and above, run `git config tag.gpgsign true`. To sign all tags by default in any local repository on your computer, run `git config --global tag.gpgsign true`.
> To configure your Git client to sign tags by default for a local repository, in Git versions 2.0.0 and above, run `git config tag.gpgsign true`. To sign all tags by default in any local repository on your computer, run `git config --global tag.gpgsign true`.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mistake.

Git version 2.23.0 is the one that added tag.gpgSign as a configuration variable. Sources:

@Sharra-writes
Copy link
Copy Markdown
Contributor

Sharra-writes commented Apr 14, 2026

@ara303 We're going to ignore Copilot since it doesn't understand with "parity" means in this context, and I have no idea why the check is failing when you didn't touch the titles or filenames. I'll see if it resolves in the next few hours and take it to the engineers if not.

Edit: Figured out the problem! Just need to get someone to fix it. 😅 It's not you, though, it's from another PR that updated something yesterday.

@Sharra-writes Sharra-writes added this pull request to the merge queue Apr 14, 2026
Merged via the queue into github:main with commit 9271de0 Apr 14, 2026
40 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bring attention to git config tag.gpgsign true for parity with auto-signing commits

3 participants