Skip to content

Commit e9be3ac

Browse files
authored
Merge pull request #739 from aws/dev
chore: release 1.9
2 parents 7bf9602 + 8d10f56 commit e9be3ac

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

.semgrepignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
testapps/
1+
testapps/
2+
test/

src/AWS.Deploy.DockerEngine/DockerFile.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public void WriteDockerFile(string projectDirectory, List<string>? projectList)
7979
.Replace("{project-name}", _projectName)
8080
.Replace("{assembly-name}", _assemblyName);
8181

82+
// ProjectDefinitionParser will have transformed projectDirectory to an absolute path,
83+
// and DockerFileName is static so traversal should not be possible here.
84+
// nosemgrep: csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine
8285
File.WriteAllText(Path.Combine(projectDirectory, DockerFileName), dockerFile);
8386
}
8487
}

src/AWS.Deploy.Orchestration/Data/AWSResourceQueryer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ public async Task<string> CreateEC2KeyPair(string keyName, string saveLocation)
449449
var response = await HandleException(async () => await ec2Client.CreateKeyPairAsync(request),
450450
"Error attempting to create EC2 key pair");
451451

452+
// We're creating the key pair at a user-defined location, and want to support relative paths
453+
// nosemgrep: csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine
452454
await File.WriteAllTextAsync(Path.Combine(saveLocation, $"{keyName}.pem"), response.KeyPair.KeyMaterial);
453455

454456
return response.KeyPair.KeyName;

test/AWS.Deploy.CLI.Common.UnitTests/AWS.Deploy.CLI.Common.UnitTests.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
@@ -33,8 +33,6 @@
3333
<ItemGroup>
3434
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
3535
<PackageReference Include="Should-DotNetStandard" Version="1.0.0" />
36-
<PackageReference Include="xunit" Version="2.4.0" />
37-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
3836
<PackageReference Include="Moq" Version="4.16.1" />
3937
</ItemGroup>
4038

test/AWS.Deploy.CLI.UnitTests/Utilities/MockPaginatedEnumerable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public MockPaginatedEnumerable(T[] data)
2020

2121
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default)
2222
{
23-
return new MockAsyncEnumerator<T>(_data);
23+
return new MockAsyncEnumerator(_data);
2424
}
2525

26-
class MockAsyncEnumerator<T> : IAsyncEnumerator<T>
26+
class MockAsyncEnumerator : IAsyncEnumerator<T>
2727
{
2828
readonly T[] _data;
2929
int _position;

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.8",
3+
"version": "1.9",
44
"publicReleaseRefSpec": [
55
".*"
66
],

0 commit comments

Comments
 (0)