firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.05k stars 118 forks source link

fix: escape single quote env var for docker executor #1180

Closed ANGkeith closed 3 months ago

ANGkeith commented 3 months ago

Fixes the error for the following gitlab-ci.yml

docker-executor variables with ':
  image: alpine
  script:
    - echo $CI_JOB_NAME
docker-executor services variables with ':
  services:
    - nginx
  image: alpine
  script:
    - echo $CI_JOB_NAME
sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

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