Skip to content

Commit 2421902

Browse files
authored
Version bump (#277)
1 parent dbb72e5 commit 2421902

File tree

4 files changed

+30
-21
lines changed

4 files changed

+30
-21
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [v1.3.0]
4+
5+
### Changes from 1.2.0-1.3.0:
6+
7+
Features:
8+
* Add API for registering an async policy selector #259 (Thanks [@jchannon](https://github.com/jchannon))
9+
* Update Content-Security-Policy builders to encourage correct directives and to flag incorrect directives #272
10+
* Add `OverInsecureHttp()` and `OverInsecureWs()` scheme sources to CSP builders #273
11+
312
## [v1.2.0]
413

514
### Changes from 1.1.0-1.2.0:

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PM> Install-Package NetEscapades.AspNetCore.SecurityHeaders
1818
Or 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.
700700
To 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"
704704
zip -d $file .signature.p7s
705705
```
706706

707707
alternatively, 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();
718718
You 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

725725
on 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
729729
Loaded 2 attestations from GitHub API
730730

731731
The 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

748748
SBOMs 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_
751751
you 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

ReleaseNotes.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Changes in 1.3.0:
2+
3+
Features:
4+
* Add API for registering an async policy selector #259 (Thanks [@jchannon](https://github.com/jchannon))
5+
* Update Content-Security-Policy builders to encourage correct directives and to flag incorrect directives #272
6+
* Add `OverInsecureHttp()` and `OverInsecureWs()` scheme sources to CSP builders #273
7+
18
## Changes in 1.2.0:
29

310
Features:
@@ -52,10 +59,3 @@ Build updates:
5259
* Generate SBOM attestation #224
5360
* Generate artifact provenance attestation #225
5461
* Automatically create releases #229
55-
56-
---
57-
58-
Changes from 1.0.0-preview.4 to 1.0.0:
59-
60-
* Allow building from forks #232
61-
* Fix release generation #231, #235, #236

build/Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Build : NukeBuild
2222
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
2323
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
2424

25-
readonly string Version = "1.2.0";
25+
readonly string Version = "1.3.0";
2626

2727
[Solution(GenerateProjects = true)] readonly Solution Solution;
2828

0 commit comments

Comments
 (0)