-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/0.25.0: (#110) Change logic for SonarQube/DependencyCheck (maint) synced local '.templates/' with remote '.github/GitReleaseManager/.templates/' (maint) Make indentation consistent (maint) synced local '.templates/' with remote '.github/GitReleaseManager/.templates/' (maint) Make GRM config match template (#120) Add ability to run dotnet-format (maint) Remove unnecessary parameters (#110) Be explicit about when tasks should run (#110) Convert FilePath to string (#110) Add missing properties to class (#110) Use path parameters for report locations (#110) Add optional Dependency-Check Step (maint) formatting (#119) Change dependencies are run time
- Loading branch information
Showing
12 changed files
with
198 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
- {{ issue.title }} - see [#{{ issue.number }}]({{ issue.html_url }}). | ||
{{ | ||
if issue_label == "Bug" || issue_label == "Bug Fix" || issue_label == "Bug Fixes" | ||
}}- Fix - {{ issue.title }} - see [#{{ issue.number }}]({{ issue.html_url }}). | ||
{{ else | ||
}}- {{ issue.title }} - see [#{{ issue.number }}]({{ issue.html_url }}). | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Copyright © 2023 Chocolatey Software, Inc | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
BuildParameters.Tasks.DependencyCheckTask = Task("Dependency-Check") | ||
.WithCriteria(() => BuildParameters.ShouldRunDependencyCheck, "Skipping because DependencyCheck has been disabled") | ||
.WithCriteria(() => BuildParameters.ShouldRunSonarQube, "Skipping because running SonarQube has been disabled") | ||
.WithCriteria(() => !string.IsNullOrEmpty(BuildParameters.SonarQubeToken), "Skipping because SonarQube Token is undefined") | ||
.IsDependentOn("Initialize-SonarQube") | ||
.IsDependeeOf("Finalise-SonarQube") | ||
.Does(() => RequireTool(ToolSettings.DependencyCheckTool, () => | ||
{ | ||
DownloadFile( | ||
"https://github.com/jeremylong/DependencyCheck/releases/download/v8.2.1/dependency-check-8.2.1-release.zip", | ||
BuildParameters.RootDirectoryPath.CombineWithFilePath("dependency-check.zip") | ||
); | ||
|
||
Unzip( | ||
BuildParameters.RootDirectoryPath.CombineWithFilePath("dependency-check.zip"), | ||
BuildParameters.RootDirectoryPath.FullPath | ||
); | ||
|
||
CopyDirectory( | ||
BuildParameters.RootDirectoryPath.Combine("dependency-check"), | ||
BuildParameters.RootDirectoryPath.Combine("tools/DependencyCheck.Runner.Tool.3.2.1/tools") | ||
); | ||
|
||
DeleteDirectory( | ||
BuildParameters.RootDirectoryPath.Combine("dependency-check"), | ||
new DeleteDirectorySettings { | ||
Recursive = true, | ||
Force = true | ||
} | ||
); | ||
|
||
DeleteFile(BuildParameters.RootDirectoryPath.CombineWithFilePath("dependency-check.zip")); | ||
|
||
var DependencyCheckSettings = new DependencyCheckSettings { | ||
Project = BuildParameters.ProductName, | ||
Scan = BuildParameters.SourceDirectoryPath.FullPath, | ||
Format = "ALL", | ||
Out = BuildParameters.Paths.Directories.DependencyCheckReports.FullPath | ||
}; | ||
|
||
DependencyCheck(DependencyCheckSettings); | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.