-
Notifications
You must be signed in to change notification settings - Fork 0
CI quality gates (Pester runner + PSScriptAnalyzer + artifacts + SARIF) #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
blindzero
merged 25 commits into
main
from
issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-settings
Jan 11, 2026
Merged
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0d755c2
chore: remove issue auto assign github action as now in issue templates
blindzero ed2c0fb
ci: add PSScriptAnalyzer linting with repo settings
blindzero 96220be
ci: run-tests as minimalistic backward wrapper
blindzero a4f4bdf
ci: change to new Invoke-IdlePesterTests.ps1
blindzero 6632857
ci: remove old run-tests.ps1 sript legacy
blindzero 9e468ad
ci: add repo PSScriptAnalyzer settings
blindzero 8f09b1a
ci: add Invoke-IdleScriptAnalyzer runner with pinned toolchain and op…
blindzero c8fe007
ci: add lint job and switch tests to Invoke-IdlePesterTests; remove r…
blindzero 300f7b6
docs: updated releases.md to new Invoke-IdlePesterTests.ps1
blindzero b86f578
docs: updating to new Pester Tests adding Script Analyzers infos
blindzero 83b9c07
docs: updating to new Pester Tests adding Script Analyzers infos
blindzero 12957b4
Merge branch 'issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-set…
blindzero c019f89
Merge branch 'issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-set…
blindzero f5be858
Merge branch 'issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-set…
blindzero 3c2c6f3
ci: fixing multiple path invoaction with foreach
blindzero 43b50da
ci: fixing multiple path invoaction with foreach
blindzero 49911bc
ci: fixing .count() issue with entitlement tests
blindzero 1d5c222
Merge branch 'issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-set…
blindzero 557d64e
ci: fixed missing paranthesis issue in check SARIF upload step
blindzero 4a5ba02
ci: remove check to upload SARIF to always upload (for create + auto-…
blindzero ae62818
Initial plan
Copilot d79e67c
fix: pin Pester to specific version 5.7.1 for supply-chain security
Copilot 7818a34
refactor: rename Ensure-* functions to Initialize-* to use approved v…
Copilot 41c14b1
Merge pull request #71 from blindzero/copilot/sub-pr-70
blindzero 0d6eca9
ci: let SARIF upload run always, even if ScriptAnalyzer fails.
blindzero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,58 @@ | ||
| # PSScriptAnalyzer settings for IdentityLifecycleEngine (IdLE) | ||
| # | ||
| # This file is intentionally data-only (no script blocks, no expressions). | ||
| # It is used by CI and can also be referenced from VS Code workspace settings. | ||
| # | ||
| # Notes: | ||
| # - We explicitly list IncludeRules to keep the first rollout focused and low-noise. | ||
| # - Formatting rules are enabled to align with STYLEGUIDE.md (4 spaces, consistent whitespace). | ||
|
|
||
| @{ | ||
| Severity = @('Error', 'Warning') | ||
|
|
||
| IncludeRules = @( | ||
| # Naming / API hygiene | ||
| 'PSUseApprovedVerbs', | ||
| 'PSAvoidGlobalVars', | ||
| 'PSAvoidUsingCmdletAliases', | ||
| 'PSAvoidUsingPositionalParameters', | ||
| 'PSUseCorrectCasing', | ||
|
|
||
| # Common correctness issues | ||
| 'PSAvoidUsingEmptyCatchBlock', | ||
| 'PSReviewUnusedParameter', | ||
| 'PSUseDeclaredVarsMoreThanAssignments', | ||
| 'PSAvoidTrailingWhitespace', | ||
|
|
||
| # Security / risky constructs | ||
| 'PSAvoidUsingInvokeExpression', | ||
| 'PSAvoidUsingPlainTextForPassword', | ||
| 'PSAvoidUsingConvertToSecureStringWithPlainText', | ||
|
|
||
| # Style / formatting (enabled explicitly) | ||
| 'PSUseConsistentIndentation', | ||
| 'PSUseConsistentWhitespace' | ||
| ) | ||
|
|
||
| Rules = @{ | ||
| PSUseConsistentIndentation = @{ | ||
| Enable = $true | ||
| IndentationSize = 4 | ||
| PipelineIndentation = 'IncreaseIndentationForFirstPipeline' | ||
| Kind = 'space' | ||
| } | ||
|
|
||
| PSUseConsistentWhitespace = @{ | ||
| Enable = $true | ||
| CheckInnerBrace = $true | ||
| CheckOpenBrace = $true | ||
| CheckOpenParen = $true | ||
| CheckOperator = $true | ||
| CheckPipe = $true | ||
| CheckPipeForRedundantWhitespace = $false | ||
| CheckSeparator = $true | ||
| CheckParameter = $false | ||
| IgnoreAssignmentOperatorInsideHashTable = $false | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.