bigdra50/Unilyze
Static analysis and code quality gates for Unity and .NET projects
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 7, 2026
- License
- MIT
Pinned Snippet
uses: bigdra50/unilyze@163754e29c5ffa0d3cb117f62857e50325ff6f0a # v0.6.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| project-path | Path to the project directory to analyze | no | . |
| unilyze-version | NuGet version of Unilyze to install (omit for latest) | no | "" |
| dotnet-version | .NET SDK version passed to actions/setup-dotnet | no | 10.0.x |
| nuget-source | Additional NuGet source (path or URL) for dotnet tool install; useful for local pack smoke tests | no | "" |
| metric | Badge metric for the quality gate (codehealth, smells, or reference metric mi) | no | codehealth |
| fail-under | Fail when codehealth min or reference metric mi average is strictly below this value | no | "" |
| fail-over | Fail the gate when smell warning count is strictly above this value (or any critical smell exists) | no | "" |
| baseline | Baseline JSON file path; suppresses known smells during analysis and badge gating | no | "" |
| base-ref | Git ref for the diff regression gate (empty skips diff) | no | "" |
| fail-on-regression | When base-ref is set, exit 2 on aggregate regression (avg/min CodeHealth drop or smell increase) | no | true |
| sarif | When true, emit a SARIF file (upload with github/codeql-action/upload-sarif in a later step) | no | false |
| step-summary | When base-ref is set, append diff markdown to GITHUB_STEP_SUMMARY | no | true |
| pr-comment | When base-ref is set on a pull_request event, upsert one sticky PR comment with the diff markdown | no | false |
| token | GitHub token for PR comments (needs pull-requests write when pr-comment is true) | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| codehealth | Minimum CodeHealth score across analyzed types (1.0-10.0) |
| mi | Reference metric - average Maintainability Index across method-bearing types |
| smells | Warning-level code smell count (critical smells are not included in this number) |
| gate-result | Badge gate outcome (passed, failed, or skipped when no gate thresholds are set) |
| sarif-path | Relative path to the generated SARIF file when sarif input is true; empty otherwise |