Skip to content

Commit f0b39b1

Browse files
nanotaboadaCopilotclaude
committed
fix(deps): upgrade AutoMapper from 14.x to 16.1.1 to resolve GHSA-rvv3-g6hj-g44x (#414)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent c509577 commit f0b39b1

6 files changed

Lines changed: 158 additions & 101 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ updates:
99
commit-message:
1010
include: scope
1111
prefix: "chore(deps): "
12-
# Pin AutoMapper to 14.x line to avoid commercial v15.x upgrades
13-
ignore:
14-
- dependency-name: "AutoMapper"
15-
update-types: ["version-update:semver-major"]
1612
groups:
1713
serilog:
1814
patterns:
@@ -34,10 +30,6 @@ updates:
3430
commit-message:
3531
include: scope
3632
prefix: "chore(deps): "
37-
# Pin AutoMapper to 14.x line to avoid commercial v15.x upgrades
38-
ignore:
39-
- dependency-name: "AutoMapper"
40-
update-types: ["version-update:semver-major"]
4133
groups:
4234
xunit:
4335
patterns:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ This project uses famous football stadiums (A-Z) that hosted FIFA World Cup matc
4646

4747
### Changed
4848

49+
- Upgrade AutoMapper from 14.x to 16.1.1 to resolve high-severity security vulnerability GHSA-rvv3-g6hj-g44x (#414)
4950
- Rename test methods to follow Microsoft .NET naming standard (#396)
5051

5152
### Deprecated

src/Dotnet.Samples.AspNetCore.WebApi/Dotnet.Samples.AspNetCore.WebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<ItemGroup Label="Runtime dependencies">
1616
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.5" />
1717
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.5" />
18-
<PackageReference Include="AutoMapper" Version="[14.0.0,15.0.0)" />
18+
<PackageReference Include="AutoMapper" Version="[16.1.1,17.0.0)" />
1919
<PackageReference Include="FluentValidation" Version="12.1.1" />
2020
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="12.1.1" />
2121
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />

src/Dotnet.Samples.AspNetCore.WebApi/Extensions/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public static IServiceCollection RegisterPlayerService(this IServiceCollection s
138138
/// <returns>The IServiceCollection for method chaining.</returns>
139139
public static IServiceCollection AddMappings(this IServiceCollection services)
140140
{
141-
services.AddAutoMapper(typeof(PlayerMappingProfile));
141+
services.AddAutoMapper(config => config.AddProfile<PlayerMappingProfile>());
142142
return services;
143143
}
144144

src/Dotnet.Samples.AspNetCore.WebApi/packages.lock.json

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"net10.0": {
55
"AutoMapper": {
66
"type": "Direct",
7-
"requested": "[14.0.0, 15.0.0)",
8-
"resolved": "14.0.0",
9-
"contentHash": "OC+1neAPM4oCCqQj3g2GJ2shziNNhOkxmNB9cVS8jtx4JbgmRzLcUOxB9Tsz6cVPHugdkHgCaCrTjjSI0Z5sCQ=="
7+
"requested": "[16.1.1, 17.0.0)",
8+
"resolved": "16.1.1",
9+
"contentHash": "VNEky8JA15ci+oIDRGHITOGOpV4dILsf8pnn24QhDl2urtqgJ2IXiS/V2EtGU17P/+f6OeFQPJETaZXV9QOIZg==",
10+
"dependencies": {
11+
"Microsoft.IdentityModel.JsonWebTokens": "8.14.0"
12+
}
1013
},
1114
"FluentValidation": {
1215
"type": "Direct",
@@ -815,6 +818,35 @@
815818
"resolved": "10.0.5",
816819
"contentHash": "xA4kkL+QS6KCAOKz/O0oquHs44Ob8J7zpBCNt3wjkBWDg5aCqfwG8rWWLsg5V86AM0sB849g9JjPjIdksTCIKg=="
817820
},
821+
"Microsoft.IdentityModel.Abstractions": {
822+
"type": "Transitive",
823+
"resolved": "8.14.0",
824+
"contentHash": "iwbCpSjD3ehfTwBhtSNEtKPK0ICun6ov7Ibx6ISNA9bfwIyzI2Siwyi9eJFCJBwxowK9xcA1mj+jBWiigeqgcQ=="
825+
},
826+
"Microsoft.IdentityModel.JsonWebTokens": {
827+
"type": "Transitive",
828+
"resolved": "8.14.0",
829+
"contentHash": "4jOpiA4THdtpLyMdAb24dtj7+6GmvhOhxf5XHLYWmPKF8ApEnApal1UnJsKO4HxUWRXDA6C4WQVfYyqsRhpNpQ==",
830+
"dependencies": {
831+
"Microsoft.IdentityModel.Tokens": "8.14.0"
832+
}
833+
},
834+
"Microsoft.IdentityModel.Logging": {
835+
"type": "Transitive",
836+
"resolved": "8.14.0",
837+
"contentHash": "eqqnemdW38CKZEHS6diA50BV94QICozDZEvSrsvN3SJXUFwVB9gy+/oz76gldP7nZliA16IglXjXTCTdmU/Ejg==",
838+
"dependencies": {
839+
"Microsoft.IdentityModel.Abstractions": "8.14.0"
840+
}
841+
},
842+
"Microsoft.IdentityModel.Tokens": {
843+
"type": "Transitive",
844+
"resolved": "8.14.0",
845+
"contentHash": "lKIZiBiGd36k02TCdMHp1KlNWisyIvQxcYJvIkz7P4gSQ9zi8dgh6S5Grj8NNG7HWYIPfQymGyoZ6JB5d1Lo1g==",
846+
"dependencies": {
847+
"Microsoft.IdentityModel.Logging": "8.14.0"
848+
}
849+
},
818850
"Microsoft.NET.StringTools": {
819851
"type": "Transitive",
820852
"resolved": "17.11.48",

0 commit comments

Comments
 (0)