From 377ca633c2ad70ec6c7b0e4fdd01791deb19667c Mon Sep 17 00:00:00 2001 From: Shawn Callegari <36091529+shawncal@users.noreply.github.com> Date: Fri, 7 Jul 2023 09:17:58 -0700 Subject: [PATCH] Cleanup repo root (#1884) Cleaning up repo root folder: - `build.sh` and `build.cmd` move to the `dotnet/` folder, since they're only responsible for building the dotnet SDK - Remove `compliance.yml` -- this is an Azure DevOps pipeline definition and need not be implemented here in the GitHub repo --------- Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com> --- compliance.yml | 61 ------------------- build.cmd => dotnet/build.cmd | 0 build.sh => dotnet/build.sh | 0 nuget.config => dotnet/nuget.config | 0 .../apps/copilot-chat-app/webapi/nuget.config | 15 +++++ samples/dotnet/nuget.config | 15 +++++ 6 files changed, 30 insertions(+), 61 deletions(-) delete mode 100644 compliance.yml rename build.cmd => dotnet/build.cmd (100%) rename build.sh => dotnet/build.sh (100%) mode change 100755 => 100644 rename nuget.config => dotnet/nuget.config (100%) create mode 100644 samples/apps/copilot-chat-app/webapi/nuget.config create mode 100644 samples/dotnet/nuget.config diff --git a/compliance.yml b/compliance.yml deleted file mode 100644 index 70cc8a253f40..000000000000 --- a/compliance.yml +++ /dev/null @@ -1,61 +0,0 @@ -trigger: -- main - -# no PR triggers -pr: none - -pool: - vmImage: 'windows-latest' - -steps: -- task: CredScan@3 - -- task: ESLint@1 - inputs: - Configuration: 'recommended' - TargetType: 'eslint' - ErrorLevel: 'warn' - -- task: UseDotNet@2 - displayName: 'Use .NET 7.0' - inputs: - packageType: 'sdk' - version: '7.x' - -- task: Semmle@1 - env: - SYSTEM_ACCESSTOKEN: $(System.AccessToken) - inputs: - sourceCodeDirectory: '$(Build.SourcesDirectory)' - language: 'csharp' - buildCommandsString: '$(Agent.ToolsDirectory)\dotnet\dotnet.exe restore $(BUILD.SourcesDirectory)\dotnet\SK-dotnet.sln#$(Agent.ToolsDirectory)\dotnet\dotnet.exe build $(BUILD.SourcesDirectory)\dotnet\SK-dotnet.sln' - querySuite: 'Recommended' - timeout: '1800' - ram: '16384' - addProjectDirToScanningExclusionList: true - -# Usage of System.AccessToken is only required for uploading -# results to CodeQL servers via variable LGTM.UploadSnapshot = true -# If you want to analyze errors on your own or if LGTM.UploadSnapshot = false, -# then passing this environment variable is not required. - -####################################################### -# Highly Discouraged, only for backward compatibility # -####################################################### -# When code is hosted on GitHub and build pipeline is created on ADO then a PAT token can be used in place of AccessToken as part of environment variable -# SYSTEM_ACCESSTOKEN: $(PATToken) -# Where PATToken is name of the variable and value contains the actual PAT token generated by user - -- task: ComponentGovernanceComponentDetection@0 - inputs: - scanType: 'Register' - verbosity: 'Verbose' - alertWarningLevel: 'High' - failOnAlert: true - -- task: PublishSecurityAnalysisLogs@3 - inputs: - ArtifactName: 'CodeAnalysisLogs' - ArtifactType: 'Container' - AllTools: true - ToolLogsNotFoundAction: 'Standard' diff --git a/build.cmd b/dotnet/build.cmd similarity index 100% rename from build.cmd rename to dotnet/build.cmd diff --git a/build.sh b/dotnet/build.sh old mode 100755 new mode 100644 similarity index 100% rename from build.sh rename to dotnet/build.sh diff --git a/nuget.config b/dotnet/nuget.config similarity index 100% rename from nuget.config rename to dotnet/nuget.config diff --git a/samples/apps/copilot-chat-app/webapi/nuget.config b/samples/apps/copilot-chat-app/webapi/nuget.config new file mode 100644 index 000000000000..7159fcd04c36 --- /dev/null +++ b/samples/apps/copilot-chat-app/webapi/nuget.config @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/samples/dotnet/nuget.config b/samples/dotnet/nuget.config new file mode 100644 index 000000000000..7159fcd04c36 --- /dev/null +++ b/samples/dotnet/nuget.config @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +