Skip to content

Commit ba541e1

Browse files
authored
Version bump (#246)
1 parent 021a0a6 commit ba541e1

File tree

4 files changed

+30
-14
lines changed

4 files changed

+30
-14
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.1.0]
4+
5+
### Changes from 1.0.0-1.1.0:
6+
7+
Features:
8+
* Add `AddRange()` to `SourceCollection` #240, #242 (Thanks [@rankobp](https://github.com/rankobp))
9+
* Improve CSP documentation #241 (Thanks [@Meir017](https://github.com/Meir017))
10+
* Add `X-Frame-Options ALLOW-FROM` with correct method name `AddFrameOptionsAllowFrom()` #244
11+
312
## [v1.0.0]
413

514
### Changes from 0.24.0-1.0.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.0.0
21+
dotnet add package NetEscapades.AspNetCore.SecurityHeaders --version 1.1.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.0.0" />
36+
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.1.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.0.0" />
571-
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version="1.0.0" />
570+
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.1.0" />
571+
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version="1.1.0" />
572572
</ItemGroup>
573573

574574
</Project>
@@ -702,14 +702,14 @@ the provenance of the package and the associated SBOMs.
702702
To 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.0.0.nupkg"
705+
file="path/to/NetEscapades.AspNetCore.SecurityHeaders.1.1.0.nupkg"
706706
zip -d $file .signature.p7s
707707
```
708708

709709
alternatively, use PowerShell and .NET to remove the `.signature.p7s` file:
710710

711711
```powershell
712-
$file="path/to/NetEscapades.AspNetCore.SecurityHeaders.1.0.0.nupkg"
712+
$file="path/to/NetEscapades.AspNetCore.SecurityHeaders.1.1.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();
720720
You 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.0.0.nupkg"
724-
gh attestation verify --owner andrewlock "NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.0.0.nupkg"
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"
725725
```
726726

727727
on success, this displays output similar to the following:
728728

729729
```bash
730-
Loaded digest sha256:bf809ff0ed6a8a31131df4391b169e35ded44d4dfd97cc797123441683a95c9f for file://NetEscapades.AspNetCore.SecurityHeaders.1.0.0.nupkg
730+
Loaded digest sha256:bf809ff0ed6a8a31131df4391b169e35ded44d4dfd97cc797123441683a95c9f for file://NetEscapades.AspNetCore.SecurityHeaders.1.1.0.nupkg
731731
Loaded 2 attestations from GitHub API
732732

733733
The 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.0.0
745+
- Build workflow:. .github/workflows/BuildAndPack.yml@refs/tags/v1.1.0
746746
- Signer repo:.... andrewlock/NetEscapades.AspNetCore.SecurityHeaders
747-
- Signer workflow: .github/workflows/BuildAndPack.yml@refs/tags/v1.0.0
747+
- Signer workflow: .github/workflows/BuildAndPack.yml@refs/tags/v1.1.0
748748
```
749749

750750
SBOMs 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_
753753
you 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.0.0.nupkg"
757-
gh attestation verify --owner andrewlock --predicate-type https://cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.0.0.nupkg"
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"
758758
```
759759

760760
## Additional Resources

ReleaseNotes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Changes in 1.1.0
2+
3+
Features:
4+
* Add `AddRange()` to `SourceCollection` #240, #242 (Thanks [@rankobp](https://github.com/rankobp))
5+
* Improve CSP documentation #241 (Thanks [@Meir017](https://github.com/Meir017))
6+
* Add `X-Frame-Options ALLOW-FROM` with correct method name `AddFrameOptionsAllowFrom()` #244
7+
18
## Changes in 1.0.0
29

310
This marks the first major release of the _NetEscapades.AspNetCore.SecurityHeaders_. For simplicity, all the changes since 0.24.0 are included below.

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.0.0";
25+
readonly string Version = "1.1.0";
2626

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

0 commit comments

Comments
 (0)