@@ -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.1 .0
21+ dotnet add package NetEscapades.AspNetCore.SecurityHeaders --version 1.2 .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.1 .0" />
36+ <PackageReference Include =" NetEscapades.AspNetCore.SecurityHeaders" Version =" 1.2 .0" />
3737 </ItemGroup >
3838
3939</Project >
@@ -567,8 +567,8 @@ This adds the package to your _.csproj_ file:
567567 < / PropertyGroup >
568568
569569 < ItemGroup >
570- < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders" Version = " 1.1 .0" / >
571- < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version = " 1.1 .0" / >
570+ < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders" Version = " 1.2 .0" / >
571+ < PackageReference Include = " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version = " 1.2 .0" / >
572572 < / ItemGroup >
573573
574574< / Project >
@@ -702,14 +702,14 @@ the provenance of the package and the associated SBOMs.
702702To remove the signature file on Linux or macOS , you can use the `zip ` utility :
703703
704704```bash
705- file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.1 .0.nupkg"
705+ file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
706706zip - d $file .signature .p7s
707707```
708708
709709alternatively , use PowerShell and .NET to remove the `.signature .p7s ` file :
710710
711711```powershell
712- $file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.1 .0.nupkg"
712+ $file = " path/to/NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
713713[Reflection .Assembly ]:: LoadWithPartialName ('System.IO.Compression' )
714714$stream = New - Object IO .FileStream ($file , [IO .FileMode ]:: Open )
715715$zip = New - Object IO .Compression .ZipArchive ($stream , [IO .Compression .ZipArchiveMode ]:: Update )
@@ -720,14 +720,14 @@ $zip.Dispose();
720720You can then verify the provenance of the package using [the GitHub CLI ](https :// cli.github.com/):
721721
722722```bash
723- gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.1.1 .0.nupkg"
724- gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.1 .0.nupkg"
723+ gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
724+ gh attestation verify -- owner andrewlock " NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.2 .0.nupkg"
725725```
726726
727727on success , this displays output similar to the following :
728728
729729```bash
730- Loaded digest sha256 :bf809ff0ed6a8a31131df4391b169e35ded44d4dfd97cc797123441683a95c9f for file :// NetEscapades.AspNetCore.SecurityHeaders.1.1 .0.nupkg
730+ Loaded digest sha256 :bf809ff0ed6a8a31131df4391b169e35ded44d4dfd97cc797123441683a95c9f for file :// NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg
731731Loaded 2 attestations from GitHub API
732732
733733The following policy criteria will be enforced :
@@ -742,9 +742,9 @@ The following 1 attestation matched the policy criteria
742742
743743- Attestation #1
744744 - Build repo :.... . andrewlock / NetEscapades .AspNetCore .SecurityHeaders
745- - Build workflow :. .github / workflows / BuildAndPack .yml @refs / tags / v1 .1 . 0
745+ - Build workflow :. .github / workflows / BuildAndPack .yml @refs / tags / v1 .2 . 0
746746 - Signer repo :.... andrewlock / NetEscapades .AspNetCore .SecurityHeaders
747- - Signer workflow : .github / workflows / BuildAndPack .yml @refs / tags / v1 .1 . 0
747+ - Signer workflow : .github / workflows / BuildAndPack .yml @refs / tags / v1 .2 . 0
748748```
749749
750750SBOMs are provided in the GitHub release for the packages using the [CycloneDX standard ](https :// cyclonedx.org/).
@@ -753,8 +753,8 @@ with the `.signature.p7s` file removed. Assuming you have modified the _.nupkg_
753753you can verify the SBOM attestations by specifying the `-- predicate - type `:
754754
755755```bash
756- gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.1.1 .0.nupkg"
757- gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.1 .0``.nupkg"
756+ gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.1.2 .0.nupkg"
757+ gh attestation verify -- owner andrewlock -- predicate - type https :// cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.2 .0``.nupkg"
758758 ```
759759
760760## Additional Resources
0 commit comments