jo-joker/CodeArts Check Analyzer
Create and run a Huawei Cloud CodeArts Check task, then publish a Markdown report to another GitHub repository.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 10, 2026
- License
- None
Pinned Snippet
uses: jo-joker/githubaction@af42ac56ceb246cdbabf9e4422cb64ad83a766e7 # v0.2tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| codearts_endpoint | CodeArts Check API endpoint, for example https://codeartscheck.cn-north-4.myhuaweicloud.com | yes | — |
| codearts_token | Huawei Cloud X-Auth-Token. If empty, IAM username/password flow is used. | no | — |
| iam_endpoint | IAM endpoint used to obtain X-Auth-Token. Can be full URL or host root. Example: https://iam.myhuaweicloud.com | no | https://iam.myhuaweicloud.com |
| iam_username | IAM username (used only when codearts_token is not provided) | no | — |
| iam_password | IAM password (used only when codearts_token is not provided) | no | — |
| iam_domain_name | IAM account/domain name (used only when codearts_token is not provided) | no | — |
| iam_project_name | IAM project name used for token scope (used only when codearts_token is not provided) | no | — |
| project_id | CodeArts project ID | yes | — |
| project_name | CodeArts project name | yes | — |
| repo_url | Code repository URL configured in CodeArts Check task | yes | — |
| branch | Branch to check | yes | main |
| task_name | CodeArts Check task name | yes | — |
| repo_type | Repository type: DevCloud, Gitee, GitHub, GitPub, gitcode, gitlab, self_gitlab, tfs_git, bitbucket | yes | GitHub |
| rule_language | Language field in rule_sets (for example Java, Python, C++) | yes | Java |
| auth_id | Code source endpoint authId for non-DevCloud repos (optional) | no | — |
| auth_type | Authorization type for non-DevCloud repos (optional) | no | — |
| run_ref | Optional run ref mode: pull or merge_request | no | — |
| timeout_seconds | Max wait time for task completion | no | 1800 |
| poll_interval_seconds | Polling interval in seconds for execution status | no | 15 |
| include_status_ids | Defect status filter for defects detail API. 0=pending,1=resolved,2=ignored (comma-separated allowed) | no | 0 |
| max_defects | Maximum number of defects to include in report | no | 500 |
| report_repo | Target report repository in owner/repo format | no | Jo-joker/maven-demo |
| report_dir | Directory in target repo where report is uploaded | no | analyze |
| report_branch | Optional target branch in report repository | no | — |
| report_commit_message | Commit message for uploading report | no | docs: add CodeArts Check analysis report |
| github_token | GitHub token with contents:write permission on target report repo | yes | — |
| fail_on_job_failure | If true, fail action when job status is failed or aborted | no | false |
Outputs
| name | description |
|---|---|
| task_id | Created CodeArts task ID |
| exec_id | CodeArts execution record ID |
| job_status | Execution status: quering/running/success/failed/aborted |
| report_path | Uploaded report path in report repository |
| report_url | HTML URL of uploaded report file |
| report_sha | Git blob SHA of uploaded report content |