Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions !README.md

This file was deleted.

12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{ps1,psd1}]
charset = utf-8-bom
indent_style = space
indent_size = 4
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## What changed and why?

Describe the user-visible behavior and any command-line compatibility changes.

## Validation

- Run `tools/Test-Repository.ps1` with the pinned test dependencies.
- Add regression coverage for behavioral fixes using mocks or synthetic fixtures.
- For administrative changes, show a `-WhatIf` example and recovery procedure.
- Record any live validation separately; never put credentials or private reports in a PR.
54 changes: 54 additions & 0 deletions .github/workflows/powershell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: PowerShell validation
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: validation-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: windows-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
edition: [Desktop, Core]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Install pinned test tools
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
if (-not (Get-PackageProvider -Name NuGet -ListAvailable -ErrorAction SilentlyContinue)) {
$null = Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Scope CurrentUser
}
$moduleRoot = Join-Path $env:RUNNER_TEMP modules
$null = New-Item -ItemType Directory -Path $moduleRoot -Force
Save-Module Pester -RequiredVersion 5.7.1 -Path $moduleRoot -Force -Repository PSGallery
Save-Module PSScriptAnalyzer -RequiredVersion 1.24.0 -Path $moduleRoot -Force -Repository PSGallery
"TOOLKIT_TEST_MODULES=$moduleRoot" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
$archive = Join-Path $env:RUNNER_TEMP sqlite.zip
Invoke-WebRequest https://www.sqlite.org/2026/sqlite-tools-win-x64-3540100.zip -OutFile $archive -UseBasicParsing
if ((Get-FileHash $archive -Algorithm SHA256).Hash -ne 'FB20997ADE5583A5FBF1E36DB7BC3C82C9416B3F314F16961E1572AA4E49487D') { throw 'SQLite checksum mismatch' }
$directory = Join-Path $env:RUNNER_TEMP sqlite
Expand-Archive $archive -DestinationPath $directory -Force
"TOOLKIT_TEST_SQLITE=$directory\sqlite3.exe" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
- name: Parse, analyze and run offline regression tests
shell: pwsh
env:
TOOLKIT_EDITION: ${{ matrix.edition }}
run: |
$env:PSModulePath = $env:TOOLKIT_TEST_MODULES + [IO.Path]::PathSeparator + $env:PSModulePath
if ($env:TOOLKIT_EDITION -eq 'Desktop') {
& powershell.exe -NoProfile -ExecutionPolicy Bypass -File ./tools/Test-Repository.ps1
} else {
& pwsh -NoProfile -File ./tools/Test-Repository.ps1
}
if ($LASTEXITCODE -ne 0) { throw "Validation failed in $env:TOOLKIT_EDITION" }
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Reports can contain personal or security-sensitive information.
*.csv
*.sqlite
*.db
TestResults*.xml
coverage.xml
.vscode/
26 changes: 0 additions & 26 deletions AD Group Member Extractor

This file was deleted.

39 changes: 0 additions & 39 deletions AD GroupMember_AccountCreationDate

This file was deleted.

4 changes: 0 additions & 4 deletions AD-PasswordNeverExpires

This file was deleted.

38 changes: 0 additions & 38 deletions ADEnable-DisabledUsers-fromList

This file was deleted.

21 changes: 0 additions & 21 deletions ADUserSearch - ForCreator

This file was deleted.

10 changes: 0 additions & 10 deletions ADUsers - Last 30 days

This file was deleted.

8 changes: 0 additions & 8 deletions AzureAD-GraphAPI ExtensionAttributeUpdate

This file was deleted.

36 changes: 0 additions & 36 deletions AzureFirewallCommands.ps1

This file was deleted.

Loading
Loading