rmohan20/Code Analyzer Action
GHA to run Code Analyzer
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Mar 28, 2023
- License
- Apache 2.0
Pinned Snippet
uses: rmohan20/code-analyzer-action@dc4820849aa15e2cc3099f8cb41b6a1588b2bf36 # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| render-results | If 'true', code-analyzer-action will render results as a markdown summary using code-analyzer-translator. Else, 'outfile-artifact-name' and 'outfile' should be provided to upload results. | yes | — |
| outfile-artifact-name | Artifact name to be used for uploading results file. Defaults to "SFCA-Results". Use this name to download results if needed. | no | SFCA-Results |
| runtype | Type of run. Valid values are "simple" and "dfa". Defaults to "simple". | no | simple |
| category | Comma-separated categories to run | no | — |
| engine | Provide comma-separated values of Code Analyzer engine(s) to excecute. Defaults to Code Analyzer defaults based on runtype. | no | — |
| env | Override ESLint default environment variables, in JSON-formatted string | no | — |
| eslintconfig | Location of custom config to execute eslint engine | no | — |
| outfile | Output file to collect the results in. Format depends on the extension of the filename. Defaults to sfca_results.json | no | sfca_results.json |
| pathexplimit | path expansion upper boundary limit. Can be used only with DFA runs. | no | — |
| pmdconfig | Location of PMD Rule Reference XML to customize PMD engine | no | — |
| projectdir | Path to project repository. Necessary when invoking sfge engine. Defaults to current directory. | no | — |
| rule-disable-warning-violation | Disables warning violations. Can be used only with DFA runs. | no | — |
| rule-thread-count | Number to threads to execute rules in Graph Engine. Can be used only with DFA runs. | no | — |
| rule-thread-timeout | Thread timeout in milliseconds on Graph Engine. Can be used only with DFA runs. | no | — |
| severitythreshold | Fail run when violation severity equals or exceeds this number | yes | 3 |
| sfgejvmargs | JVM args to control Graph Engine run. Can be used only with DFA runs. | no | — |
| target | Glob pattern, directory, or comma separated list of files to execute Code Analyzer | yes | — |
| tsconfig | Location of tsconfig file while executing eslint-typescript engine | no | — |
Outputs
| name | description |
|---|---|
| exit-code | Exit code returned by Code Analyzer run |