Skip to content

ECA check: don't work for internal/private project visibility

ECA check failed on merge request when project visilibility is not public.

Current behavior

ECA Check start!
++ [[ -z 7 ]]
+++ curl -s GET +++ 'https://gitlab.eclipse.org/api/v4/projects/3608/merge_requests/7/commits&job_token=[MASKED]' jq -H -r 'accept: application/json' -H '.[].id''Content-Type: application/json'
jq: error (at <stdin>:0): Cannot index string with string "id"

Workaround

Change project visility or inject bot token to GITLAB_TOKEN CI variables.

NOTE

CI_JOB_TOKEN can access Merge Request API.

Related issue: https://gitlab.com/gitlab-org/gitlab/-/issues/17511

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information