Skip to content

Change Hash field to SHA256 for package integrity#11252

Open
t-johnson wants to merge 1 commit intoMicrosoftDocs:mainfrom
t-johnson:patch-1
Open

Change Hash field to SHA256 for package integrity#11252
t-johnson wants to merge 1 commit intoMicrosoftDocs:mainfrom
t-johnson:patch-1

Conversation

@t-johnson
Copy link

Updated the Hash field to specify SHA256 instead of SHA1 for package file integrity verification.

Updated the Hash field to specify SHA256 instead of SHA1 for package file integrity verification.
@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 5f26c67:

✅ Validation status: passed

File Status Preview URL Details
docs/deployment/packagefiles-element-bootstrapper.md ✅Succeeded

For more details, please refer to the build report.

@prmerger-automator
Copy link
Contributor

@t-johnson : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
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

Updates the Visual Studio bootstrapper schema documentation to reflect a stronger hash algorithm for PackageFile integrity verification.

Changes:

  • Updated the Hash attribute description from SHA-1 to SHA-256.
  • Added a version note about older behavior.
  • Normalized indentation/formatting in the “See also” list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| `CopyOnBuild` | Optional. Specifies whether the bootstrapper should copy the package file onto the disk at build time. The default is true. |
| `PublicKey` | The encrypted public key of the package's certificate signer. Required if `HomeSite` is used; otherwise, optional. |
| `Hash` | Optional. An SHA1 hash of the package file. This is used to verify the integrity of the file at install time. If the identical hash cannot be computed from the package file, the package will not be installed. |
| `Hash` | Optional. An SHA256 hash of the package file. This is used to verify the integrity of the file at install time. If the identical hash cannot be computed from the package file, the package will not be installed. (Note this was a SHA1 Hash for .NET 3.5 and earlier) |
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

Wording/terminology is inconsistent with the rest of the deployment docs: use the standard hyphenated forms (e.g., “SHA-256” / “SHA-1”) and lowercase “hash”. Also “An SHA256” is grammatically incorrect; it should be “A SHA-256 …” (or rephrase to avoid the article).

Suggested change
| `Hash` | Optional. An SHA256 hash of the package file. This is used to verify the integrity of the file at install time. If the identical hash cannot be computed from the package file, the package will not be installed. (Note this was a SHA1 Hash for .NET 3.5 and earlier) |
| `Hash` | Optional. A SHA-256 hash of the package file. This is used to verify the integrity of the file at install time. If the identical hash cannot be computed from the package file, the package will not be installed. (Note this was a SHA-1 hash for .NET 3.5 and earlier) |

Copilot uses AI. Check for mistakes.
| `CopyOnBuild` | Optional. Specifies whether the bootstrapper should copy the package file onto the disk at build time. The default is true. |
| `PublicKey` | The encrypted public key of the package's certificate signer. Required if `HomeSite` is used; otherwise, optional. |
| `Hash` | Optional. An SHA1 hash of the package file. This is used to verify the integrity of the file at install time. If the identical hash cannot be computed from the package file, the package will not be installed. |
| `Hash` | Optional. An SHA256 hash of the package file. This is used to verify the integrity of the file at install time. If the identical hash cannot be computed from the package file, the package will not be installed. (Note this was a SHA1 Hash for .NET 3.5 and earlier) |
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The parenthetical note “.NET 3.5 and earlier” is ambiguous in this bootstrapper schema context (it’s not clear whether this refers to Visual Studio versions, the bootstrapper engine version, or something else). Consider clarifying which tooling/runtime versions expect SHA-1 vs SHA-256 and (ideally) link to an authoritative reference so readers know when the behavior changed.

Copilot uses AI. Check for mistakes.
@ttorble
Copy link
Contributor

ttorble commented Mar 2, 2026

@Mikejo5000

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants