Merge request for changing from CI_PROJECT_NAME to CI_PROJECT_TITLE and for URL-encoding project name

CI_PROJECT_TITLE is defined as "The human-readable project name as displayed in the GitLab web interface." according to GitLab CI variables https://docs.gitlab.com/ee/ci/variables/predefined_variables.html while CI_PROJECT_NAME is "The name of the directory for the project. For example if the project URL is gitlab.example.com/group-name/project-1, CI_PROJECT_NAME is project-1." which is always low case. My test results backups these definitions. $ echo "ci_project_name $CI_PROJECT_NAME - $CI_COMMIT_BRANCH" ci_project_name mk-java-sec-code - main $ echo "ci_project_title $CI_PROJECT_TITLE" ci_project_title MK-java-sec-code

And for URL-encoded project name, it was tested with a project name including Japanese characters and it works fine. The following is log lines for fetching a view from the project name which includes Japanese.

======================================================================================== == Check security gate for project MK-java-sec-code-日本語プロジェクト: COVERITY_OPT_SECURITY_GATE_VIEW_NAME

View escaped: GitLab-CI%20OWASP%20Web%20TOP10%202021 and Project escaped: MK-java-sec-code-%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88

[ { "cid": 16743, "displayType": "URL manipulation", "displayImpact": "Medium", "status": "New", "firstDetected": "08/26/22", "owner": "Unassigned", "classification": "Unclassified", "severity": "Unspecified", "action": "Undecided", "displayComponent": "Other", "displayCategory": "Medium impact security", "displayFile": "/src/main/java/org/joychou/controller/SSRF.java", "displayFunction": "SSRF.httpURLConnection", "occurrenceCount": 1 },

Edited by Makoto Koishi

Merge request reports

Loading