-
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
CI quality gates (Pester runner + PSScriptAnalyzer + artifacts + SARIF) #70
Conversation
…tings' of https://github.com/blindzero/IdentityLifecycleEngine into issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-settings
…tings' of https://github.com/blindzero/IdentityLifecycleEngine into issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-settings
…tings' of https://github.com/blindzero/IdentityLifecycleEngine into issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-settings
…tings' of https://github.com/blindzero/IdentityLifecycleEngine into issues/68-ci-add-PSScriptAnalyzer-linting-with-repo-settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d5c222182
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces comprehensive CI quality gates for the IdLE repository, establishing canonical test and linting infrastructure with CI-friendly artifact outputs.
Changes:
- Adds PSScriptAnalyzer integration with repo-specific settings (PSScriptAnalyzerSettings.psd1) and SARIF output for GitHub Code Scanning
- Replaces legacy test runner with new Pester entry point supporting coverage reporting and deterministic artifact generation
- Extends CI pipeline with dedicated lint job and artifact uploads for both test results and static analysis findings
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/run-tests.ps1 | Removed legacy test runner in favor of more robust Invoke-IdlePesterTests.ps1 |
| tools/Invoke-IdleScriptAnalyzer.ps1 | New canonical PSScriptAnalyzer runner with CI mode, JSON/SARIF outputs, and version pinning |
| tools/Invoke-IdlePesterTests.ps1 | New canonical Pester test runner with coverage support and artifact generation |
| tests/ProviderContracts/EntitlementProvider.Contract.ps1 | Fixed array coercion for Where-Object results to ensure Count property is available |
| docs/advanced/testing.md | Updated with new test/analyzer commands and CI artifact documentation |
| docs/advanced/releases.md | Updated release checklist to include both Pester and PSScriptAnalyzer checks |
| STYLEGUIDE.md | Added Quality Gates section documenting PSScriptAnalyzer and Pester requirements |
| PSScriptAnalyzerSettings.psd1 | New repo-wide analyzer configuration with curated rule set and 4-space indentation standard |
| CONTRIBUTING.md | Updated Definition of Done and added detailed local quality check instructions |
| .github/workflows/issue-auto-assign.yml | Removed (undocumented change, unrelated to quality gates) |
| .github/workflows/ci.yml | Added lint job with PSScriptAnalyzer, SARIF upload to Code Scanning, and updated artifact uploads |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@blindzero I've opened a new pull request, #71, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
…erbs Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Pin Pester to exact version and use approved PowerShell verbs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
This PR introduces repo-native quality gates for IdLE:
Motivation
We want consistent, deterministic, and portable quality feedback across local development and CI:
Type of Change
Changes
Testing
Local:
CI:
Notes
Related Issues
Link related issues here (if any).
Closes #68