catouc / gitlab-ci-crawler

MIT License
1 stars 3 forks source link

Prevent parsing of commented information #103

Open mercury200Hg opened 5 months ago

mercury200Hg commented 5 months ago

If a project has commented includes/triggers they are parsed as uncommented code.

Steps to reproduce: Currently if a .gitlab-ci.yml for project-A contains something like:

# include:
#   - project: namespace-B/project-B
#     file: ci/example-template.yml

Then, it's also parsed as a relationship. So a relationship from project-A to project-B of type INCLUDE is created which shouldn't happen.

This might need to be excluded.

catouc commented 5 months ago

Hmm can't reproduce it with the test suite like in https://github.com/catouc/gitlab-ci-crawler/commit/790461211230844f6b1d947445049bc43d745d33.

Is there any more detail on the bug?