Skip to content

Commit

Permalink
first cut
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Mar 15, 2022
1 parent 0fe75a1 commit 9c2d9ae
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- run: ./build.sh build
- run: ./build.sh codeql

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
74 changes: 74 additions & 0 deletions Duende.IdentityServer.CodeQL.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31613.86
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D5E9E8E5-4050-4B9A-9F1F-15FA3BDB0684}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Duende.IdentityServer.Storage", "src\Storage\Duende.IdentityServer.Storage.csproj", "{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Duende.IdentityServer", "src\IdentityServer\Duende.IdentityServer.csproj", "{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "hosts", "hosts", "{82C80BEB-73A0-4B96-83A4-7C69792CF010}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Host.Main", "hosts\Main\Host.Main.csproj", "{B9EB8B81-27B1-462C-B190-716365D62942}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Debug|x64.ActiveCfg = Debug|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Debug|x64.Build.0 = Debug|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Debug|x86.ActiveCfg = Debug|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Debug|x86.Build.0 = Debug|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Release|Any CPU.Build.0 = Release|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Release|x64.ActiveCfg = Release|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Release|x64.Build.0 = Release|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Release|x86.ActiveCfg = Release|Any CPU
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0}.Release|x86.Build.0 = Release|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Debug|x64.ActiveCfg = Debug|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Debug|x64.Build.0 = Debug|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Debug|x86.ActiveCfg = Debug|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Debug|x86.Build.0 = Debug|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Release|Any CPU.Build.0 = Release|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Release|x64.ActiveCfg = Release|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Release|x64.Build.0 = Release|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Release|x86.ActiveCfg = Release|Any CPU
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED}.Release|x86.Build.0 = Release|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Debug|x64.ActiveCfg = Debug|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Debug|x64.Build.0 = Debug|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Debug|x86.ActiveCfg = Debug|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Debug|x86.Build.0 = Debug|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Release|Any CPU.Build.0 = Release|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Release|x64.ActiveCfg = Release|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Release|x64.Build.0 = Release|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Release|x86.ActiveCfg = Release|Any CPU
{B9EB8B81-27B1-462C-B190-716365D62942}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{4FEBAA3A-EBF6-4F47-BD44-A8556C14E9F0} = {D5E9E8E5-4050-4B9A-9F1F-15FA3BDB0684}
{B323C0BF-C0BB-4BD4-9B08-A92EC68C9CED} = {D5E9E8E5-4050-4B9A-9F1F-15FA3BDB0684}
{B9EB8B81-27B1-462C-B190-716365D62942} = {82C80BEB-73A0-4B96-83A4-7C69792CF010}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D9A1C359-CF74-403C-AB6E-AAC7DBA5AFB9}
EndGlobalSection
EndGlobal
7 changes: 7 additions & 0 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace build
internal static class Program
{
private const string solution = "Duende.IdentityServer.sln";
private const string solutionCodeQL = "Duende.IdentityServer.CodeQL.sln";
private const string packOutput = "./artifacts";
private const string envVarMissing = " environment variable is missing. Aborting.";

Expand All @@ -17,6 +18,7 @@ private static class Targets
public const string CleanBuildOutput = "clean-build-output";
public const string CleanPackOutput = "clean-pack-output";
public const string Build = "build";
public const string CodeQL = "codeql";
public const string Test = "test";
public const string Pack = "pack";
public const string SignBinary = "sign-binary";
Expand All @@ -39,6 +41,11 @@ internal static void Main(string[] args)
{
Run("dotnet", $"build {solution} -c Release --nologo");
});

Target(Targets.CodeQL, DependsOn(Targets.CleanBuildOutput), () =>
{
Run("dotnet", $"build {solutionCodeQL} -c Release --nologo");
});

Target(Targets.SignBinary, DependsOn(Targets.Build, Targets.RestoreTools), () =>
{
Expand Down

0 comments on commit 9c2d9ae

Please sign in to comment.