From 558bb8cb20721a1189981096eb485b96a15e081b Mon Sep 17 00:00:00 2001 From: Oscar Virot Date: Mon, 6 Jan 2025 18:44:52 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f13a418..ddb5142 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # The "Tame My Certs" policy module for Active Directory Certificate Services certification authorities -![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/main.yml/badge.svg) +![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/badge-build.yml/badge.svg) ![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/badge-xunit.yml/badge.svg) TameMyCerts is a [policy module](https://docs.microsoft.com/en-us/windows/win32/seccrypto/certificate-services-architecture) for Microsoft [Active Directory Certificate Services (AD CS)](https://docs.microsoft.com/en-us/windows/win32/seccrypto/certificate-services) enterprise certification authorities that enables security automation for a lot of use cases in the PKI field. @@ -48,4 +48,4 @@ The TameMyCerts policy module addresses, amongst others, the following use cases - Preventing Users to request certificates from templates that are intended to be used solely with [AutoEnrollment](https://www.gradenegger.eu/en/basics-manual-and-automatic-certificate-request-via-lightweight-directory-access-protocol-ldap-and-remote-procedure-call-distributed-common-object-model-rpc-dcom/) via alternative methods (e.g. MMC.exe). -- TameMyCerts is also the perfect companion for the [TameMyCerts REST API](https://github.com/Sleepw4lker/TameMyCerts.REST) for AD CS, the [TameMyCerts Certificate Enrollment Proxy](https://github.com/Sleepw4lker/TameMyCerts.WSTEP) for AD CS or the awesome [ACME-ADCS-Server](https://github.com/glatzert/ACME-Server-ADCS) project. \ No newline at end of file +- TameMyCerts is also the perfect companion for the [TameMyCerts REST API](https://github.com/Sleepw4lker/TameMyCerts.REST) for AD CS, the [TameMyCerts Certificate Enrollment Proxy](https://github.com/Sleepw4lker/TameMyCerts.WSTEP) for AD CS or the awesome [ACME-ADCS-Server](https://github.com/glatzert/ACME-Server-ADCS) project. From 635004a5b9e262cb0d8d81d08b81ab1b6c8b0e3c Mon Sep 17 00:00:00 2001 From: Oscar Virot Date: Mon, 6 Jan 2025 18:48:42 +0100 Subject: [PATCH 2/3] Badges --- .github/workflows/badge-build.yml | 36 ++++++++++++++++++++++++++++ .github/workflows/badge-xunit.yml | 39 +++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 .github/workflows/badge-build.yml create mode 100644 .github/workflows/badge-xunit.yml diff --git a/.github/workflows/badge-build.yml b/.github/workflows/badge-build.yml new file mode 100644 index 0000000..aaebfd2 --- /dev/null +++ b/.github/workflows/badge-build.yml @@ -0,0 +1,36 @@ +name: Build + +on: + push: + branches: [ "main" ] + +jobs: + build: + name: Build + runs-on: windows-latest + + steps: + + - uses: actions/checkout@v4 + + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Install dependencies + run: dotnet restore + + - name: Setup MSBuild Path + uses: microsoft/setup-msbuild@v1.3 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + + - name: Build Debug + run: msbuild TameMyCerts\TameMyCerts.csproj -property:Configuration=debug + + - name: Build TameMyCerts.Tests + run: msbuild TameMyCerts.Tests\TameMyCerts.Tests.csproj -property:Configuration=debug + + - name: Build ETW Manifest + run: msbuild Support.GenerateETWManifest\Support.GenerateETWManifest.csproj -property:Configuration=debug \ No newline at end of file diff --git a/.github/workflows/badge-xunit.yml b/.github/workflows/badge-xunit.yml new file mode 100644 index 0000000..a936270 --- /dev/null +++ b/.github/workflows/badge-xunit.yml @@ -0,0 +1,39 @@ +name: XUnit tests + +on: + push: + branches: [ "main" ] + +jobs: + build: + name: XUnit tests + runs-on: windows-latest + + steps: + + - uses: actions/checkout@v4 + + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Install dependencies + run: dotnet restore + + - name: Setup MSBuild Path + uses: microsoft/setup-msbuild@v1.3 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + + - name: Build Debug + run: msbuild TameMyCerts\TameMyCerts.csproj -property:Configuration=debug + + - name: Build TameMyCerts.Tests + run: msbuild TameMyCerts.Tests\TameMyCerts.Tests.csproj -property:Configuration=debug + + - name: Build ETW Manifest + run: msbuild Support.GenerateETWManifest\Support.GenerateETWManifest.csproj -property:Configuration=debug + + - name: Run xunit tests + run: dotnet test --no-build --verbosity minimal \ No newline at end of file From 4c9c920b9c9c72b3b9d35570819aa2b4eb5795f4 Mon Sep 17 00:00:00 2001 From: Oscar Virot Date: Mon, 6 Jan 2025 18:55:21 +0100 Subject: [PATCH 3/3] make sure we are pull on main --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ddb5142..7582590 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # The "Tame My Certs" policy module for Active Directory Certificate Services certification authorities -![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/badge-build.yml/badge.svg) ![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/badge-xunit.yml/badge.svg) +![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/badge-build.yml/badge.svg?branch=main&event=push) ![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/badge-xunit.yml/badge.svg?branch=main&event=push) TameMyCerts is a [policy module](https://docs.microsoft.com/en-us/windows/win32/seccrypto/certificate-services-architecture) for Microsoft [Active Directory Certificate Services (AD CS)](https://docs.microsoft.com/en-us/windows/win32/seccrypto/certificate-services) enterprise certification authorities that enables security automation for a lot of use cases in the PKI field.