Escaping GitLabCI Variables in Lint

It would be ideal if GitLab Ci Lint could show you how the variables will be escaped. Currently I have a script line that looks like:

- "curl https://app.getsentry.com/api/hooks/release/builtin/11111/123123123123/ -X POST -H 'Content-Type: application/json' -d '{\"version\": \"$CI_BUILD_REF\"}'"

However this is not actually imputing the CI_BUILD_REF in the curl request instead it is sending the literal value $CI_BUILD_REF.

Lint should be able to take the gitlab-ci.yml and show you how the variables will be escaped if at all.

Edited Jul 15, 2020 by Jason Yavorsky
Assignee Loading
Time tracking Loading