Skip to content

Commit

Permalink
Merge pull request #739 from aws/dev
Browse files Browse the repository at this point in the history
chore: release 1.9
  • Loading branch information
ashovlin authored Jan 6, 2023
2 parents 7bf9602 + 8d10f56 commit e9be3ac
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .semgrepignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
testapps/
testapps/
test/
3 changes: 3 additions & 0 deletions src/AWS.Deploy.DockerEngine/DockerFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public void WriteDockerFile(string projectDirectory, List<string>? projectList)
.Replace("{project-name}", _projectName)
.Replace("{assembly-name}", _assemblyName);

// ProjectDefinitionParser will have transformed projectDirectory to an absolute path,
// and DockerFileName is static so traversal should not be possible here.
// nosemgrep: csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine
File.WriteAllText(Path.Combine(projectDirectory, DockerFileName), dockerFile);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/AWS.Deploy.Orchestration/Data/AWSResourceQueryer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ public async Task<string> CreateEC2KeyPair(string keyName, string saveLocation)
var response = await HandleException(async () => await ec2Client.CreateKeyPairAsync(request),
"Error attempting to create EC2 key pair");

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

return response.KeyPair.KeyName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand Down Expand Up @@ -33,8 +33,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Should-DotNetStandard" Version="1.0.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
<PackageReference Include="Moq" Version="4.16.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public MockPaginatedEnumerable(T[] data)

public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default)
{
return new MockAsyncEnumerator<T>(_data);
return new MockAsyncEnumerator(_data);
}

class MockAsyncEnumerator<T> : IAsyncEnumerator<T>
class MockAsyncEnumerator : IAsyncEnumerator<T>
{
readonly T[] _data;
int _position;
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.8",
"version": "1.9",
"publicReleaseRefSpec": [
".*"
],
Expand Down

0 comments on commit e9be3ac

Please sign in to comment.