Closed ANGkeith closed 3 months ago
Running the following,
--- variables: FOO: 1 job: image: alpine script: - echo hello
throws the following error,
TypeError: val.replace is not a function.
Job's variables are casted to String as seen: https://github.com/firecow/gitlab-ci-local/blob/0286e76abe7bd85cb744bb5500904d58029d0de5/src/parser.ts#L121
String
We might have forgotten to cast the global variable
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots 100.0% Coverage on New Code 0.0% Duplication on New Code
See analysis details on SonarCloud
Description
Running the following,
throws the following error,
Additional context
Job's variables are casted to
String
as seen: https://github.com/firecow/gitlab-ci-local/blob/0286e76abe7bd85cb744bb5500904d58029d0de5/src/parser.ts#L121We might have forgotten to cast the global variable