@@ -18,7 +18,7 @@ PM> Install-Package NetEscapades.AspNetCore.SecurityHeaders
1818Or using the ` dotnet ` CLI
1919
2020``` bash
21- dotnet add package NetEscapades.AspNetCore.SecurityHeaders --version 1.2 .0
21+ dotnet add package NetEscapades.AspNetCore.SecurityHeaders --version 1.3 .0
2222```
2323
2424## Usage
@@ -33,7 +33,7 @@ When you install the package, it should be added to your `.csproj`. Alternativel
3333 </PropertyGroup >
3434
3535 <ItemGroup >
36- <PackageReference Include =" NetEscapades.AspNetCore.SecurityHeaders" Version =" 1.2 .0" />
36+ <PackageReference Include =" NetEscapades.AspNetCore.SecurityHeaders" Version =" 1.3 .0" />
3737 </ItemGroup >
3838
3939</Project >
@@ -566,8 +566,8 @@ This adds the package to your _.csproj_ file:
566566 < / PropertyGroup >
567567
568568 < ItemGroup >
569- < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders" Version = " 1.2 .0" / >
570- < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version = " 1.2 .0" / >
569+ < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders" Version = " 1.3 .0" / >
570+ < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version = " 1.3 .0" / >
571571 < / ItemGroup >
572572
573573< / Project >
@@ -700,14 +700,14 @@ the provenance of the package and the associated SBOMs.
700700To remove the signature file on Linux or macOS , you can use the `zip ` utility :
701701
702702```bash
703- file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
703+ file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.3 .0.nupkg"
704704zip - d $file .signature .p7s
705705```
706706
707707alternatively , use PowerShell and .NET to remove the `.signature .p7s ` file :
708708
709709```powershell
710- $file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
710+ $file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.3 .0.nupkg"
711711[Reflection .Assembly ]:: LoadWithPartialName ('System.IO.Compression' )
712712$stream = New - Object IO .FileStream ($file , [IO .FileMode ]:: Open )
713713$zip = New - Object IO .Compression .ZipArchive ($stream , [IO .Compression .ZipArchiveMode ]:: Update )
@@ -718,14 +718,14 @@ $zip.Dispose();
718718You can then verify the provenance of the package using [the GitHub CLI ](https :// cli.github.com/):
719719
720720```bash
721- gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
722- gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.2 .0.nupkg"
721+ gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.1.3 .0.nupkg"
722+ gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.3 .0.nupkg"
723723```
724724
725725on success , this displays output similar to the following :
726726
727727```bash
728- Loaded digest sha256 :bf809ff0ed6a8a31131df4391b169e35ded44d4dfd97cc797123441683a95c9f for file :// NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg
728+ Loaded digest sha256 :bf809ff0ed6a8a31131df4391b169e35ded44d4dfd97cc797123441683a95c9f for file :// NetEscapades.AspNetCore.SecurityHeaders.1.3 .0.nupkg
729729Loaded 2 attestations from GitHub API
730730
731731The following policy criteria will be enforced :
@@ -740,9 +740,9 @@ The following 1 attestation matched the policy criteria
740740
741741- Attestation #1
742742 - Build repo :.... . andrewlock / NetEscapades .AspNetCore .SecurityHeaders
743- - Build workflow :. .github / workflows / BuildAndPack .yml @refs / tags / v1 .2 . 0
743+ - Build workflow :. .github / workflows / BuildAndPack .yml @refs / tags / v1 .3 . 0
744744 - Signer repo :.... andrewlock / NetEscapades .AspNetCore .SecurityHeaders
745- - Signer workflow : .github / workflows / BuildAndPack .yml @refs / tags / v1 .2 . 0
745+ - Signer workflow : .github / workflows / BuildAndPack .yml @refs / tags / v1 .3 . 0
746746```
747747
748748SBOMs are provided in the GitHub release for the packages using the [CycloneDX standard ](https :// cyclonedx.org/).
@@ -751,8 +751,8 @@ with the `.signature.p7s` file removed. Assuming you have modified the _.nupkg_
751751you can verify the SBOM attestations by specifying the `-- predicate - type `:
752752
753753```bash
754- gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
755- gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.2 .0``.nupkg"
754+ gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.1.3 .0.nupkg"
755+ gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.3 .0``.nupkg"
756756 ```
757757
758758## Additional Resources
0 commit comments