o-kasian/GitHub Script
Run OpenAI GPT model to fix sonarqube findings
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Mar 1, 2024
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: o-kasian/openai-sonarqube-action@5b9d658f7ee0f50ca2f82897a727322059e4b8c0 # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| sonar-token | SonarQube token to fetch infromation | yes | — |
| sonar-project-key | Prject key in sonarqube, if not specified explicitly will look for sonar-project.properties, or use ${owner}_${repo} if not found | yes | — |
| sonar-branch | Branch name in sonarqube to fetch information from, by default will use current branch | no | — |
| sonar-url | API url of sonarqube instance, by default Sonar Cloud | no | https://sonarcloud.io/api/ |
| sonar-query | Yaml containing additional parameters supported by api/issues/search https://next.sonarqube.com/sonarqube/web_api/api/issues/search | no | — |
| sonar-exclude-files | Coma-separated list of GLOB patterns for sources to be excluded from autofix | no | — |
| sonar-exclude-rules | Coma-separated list of SonarQube rules to include | no | — |
| openai-token | OpenAI token to use for API calls | yes | — |
| openai-rate-limit | OpenAI API rate limit per minute | no | 3 |
| openai-url | — | no | https://api.openai.com/v1 |
| openai-model | — | no | gpt-3.5-turbo |
| sources-dir | Sources directory, defaults to github.workspace | no | — |
| output-dir | Ouptput directory for resulting files, defaults to sources-dir | no | — |
Outputs
| name | description |
|---|---|
| files-changed | The Number of files changed |