halleck45/AST Metrics analysis
Prevent architectural regressions: analyzes pull requests and reports only new or worsened issues. Full analysis on push.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Nov 30, 2025
- License
- MIT
Pinned Snippet
uses: halleck45/action-ast-metrics@6dd3e20e02fce41ed20eb9c4030a9c53633f2ec3 # v1.0.5tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Version of AST Metrics to use (e.g. v0.28.0). Pinning a version is recommended for reproducible checks. | no | latest |
| directory | Directory to analyze | no | . |
| base | Git reference to compare the pull request with. Default: the base branch of the pull request. | no | "" |
| fail-on | Fail the check when a regression of at least this severity is introduced: high, medium, any or never. Default: never (informative mode). | no | never |
| comment | Post (and update) a single review comment on the pull request. Best effort: requires the pull-requests: write permission; silently falls back to the job summary otherwise (e.g. pull requests from forks). | no | true |
| sarif | Upload regressions to GitHub code scanning as SARIF. Requires the security-events: write permission, and GitHub Advanced Security on private repositories. | no | false |
| html-artifact | Upload the full HTML report as a build artifact. Default: true on push, false on pull requests (auto). | no | auto |
| max-findings | Maximum number of regressions displayed in the summary and the comment | no | 5 |
Outputs
no outputs