Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .NET 8 deployments #793

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Add support for .NET 8 deployments #793

merged 2 commits into from
Oct 16, 2023

Conversation

philasmar
Copy link
Contributor

Issue #, if available:
DOTNET-7160
DOTNET-7159
DOTNET-7201

Description of changes:
Release of the feature branch which includes approved PRs:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

// 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);
File.WriteAllText(Path.Combine(projectDirectory, Constants.Docker.DefaultDockerfileName), dockerFile);

Check warning

Code scanning / Semgrep

String argument projectDirectory is used to read or write data from a file via Path.Combine without direct sanitization via Path.GetFileName. If the path is user-supplied data this can lead to path traversal. Warning

String argument projectDirectory is used to read or write data from a file via Path.Combine without direct sanitization via Path.GetFileName. If the path is user-supplied data this can lead to path traversal.
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Attention: 29 lines in your changes are missing coverage. Please review.

Comparison is base (c060951) 61.27% compared to head (8c4a700) 61.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #793      +/-   ##
==========================================
+ Coverage   61.27%   61.46%   +0.19%     
==========================================
  Files         276      277       +1     
  Lines       10554    10659     +105     
  Branches     1463     1484      +21     
==========================================
+ Hits         6467     6552      +85     
- Misses       3547     3566      +19     
- Partials      540      541       +1     
Files Coverage Δ
...y.CLI/Commands/TypeHints/TypeHintCommandFactory.cs 95.12% <100.00%> (+0.12%) ⬆️
...eploy.Common/DeploymentBundles/DeploymentBundle.cs 100.00% <100.00%> (ø)
src/AWS.Deploy.Common/Exceptions.cs 63.41% <ø> (ø)
src/AWS.Deploy.Constants/Docker.cs 100.00% <100.00%> (ø)
src/AWS.Deploy.DockerEngine/DockerEngine.cs 84.33% <100.00%> (+3.45%) ⬆️
src/AWS.Deploy.DockerEngine/DockerFile.cs 89.28% <100.00%> (+6.93%) ⬆️
...c/AWS.Deploy.Orchestration/OptionSettingHandler.cs 77.94% <100.00%> (+0.22%) ⬆️
src/AWS.Deploy.Orchestration/Exceptions.cs 5.88% <0.00%> (-0.18%) ⬇️
...igFileDeployment/DeploymentSettingsHandlerTests.cs 0.00% <0.00%> (ø)
src/AWS.Deploy.Orchestration/Orchestrator.cs 65.50% <75.00%> (+3.06%) ⬆️
... and 2 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@philasmar philasmar merged commit 504a504 into dev Oct 16, 2023
10 checks passed
@philasmar philasmar deleted the feature/net8 branch October 16, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants