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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 10, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: jo-joker/githubaction@af42ac56ceb246cdbabf9e4422cb64ad83a766e7 # v0.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
codearts_endpointCodeArts Check API endpoint, for example https://codeartscheck.cn-north-4.myhuaweicloud.comyes
codearts_tokenHuawei Cloud X-Auth-Token. If empty, IAM username/password flow is used.no
iam_endpointIAM endpoint used to obtain X-Auth-Token. Can be full URL or host root. Example: https://iam.myhuaweicloud.comnohttps://iam.myhuaweicloud.com
iam_usernameIAM username (used only when codearts_token is not provided)no
iam_passwordIAM password (used only when codearts_token is not provided)no
iam_domain_nameIAM account/domain name (used only when codearts_token is not provided)no
iam_project_nameIAM project name used for token scope (used only when codearts_token is not provided)no
project_idCodeArts project IDyes
project_nameCodeArts project nameyes
repo_urlCode repository URL configured in CodeArts Check taskyes
branchBranch to checkyesmain
task_nameCodeArts Check task nameyes
repo_typeRepository type: DevCloud, Gitee, GitHub, GitPub, gitcode, gitlab, self_gitlab, tfs_git, bitbucketyesGitHub
rule_languageLanguage field in rule_sets (for example Java, Python, C++)yesJava
auth_idCode source endpoint authId for non-DevCloud repos (optional)no
auth_typeAuthorization type for non-DevCloud repos (optional)no
run_refOptional run ref mode: pull or merge_requestno
timeout_secondsMax wait time for task completionno1800
poll_interval_secondsPolling interval in seconds for execution statusno15
include_status_idsDefect status filter for defects detail API. 0=pending,1=resolved,2=ignored (comma-separated allowed)no0
max_defectsMaximum number of defects to include in reportno500
report_repoTarget report repository in owner/repo formatnoJo-joker/maven-demo
report_dirDirectory in target repo where report is uploadednoanalyze
report_branchOptional target branch in report repositoryno
report_commit_messageCommit message for uploading reportnodocs: add CodeArts Check analysis report
github_tokenGitHub token with contents:write permission on target report repoyes
fail_on_job_failureIf true, fail action when job status is failed or abortednofalse
namedescription
task_idCreated CodeArts task ID
exec_idCodeArts execution record ID
job_statusExecution status: quering/running/success/failed/aborted
report_pathUploaded report path in report repository
report_urlHTML URL of uploaded report file
report_shaGit blob SHA of uploaded report content