python3 validate_yaml.py .gitlab-ci.yml
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Project `home-tasks/pipeline/python-tests` not found or access denied!
python3 validate_yaml.py .gitlab-ci.yml
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Project `home-tasks/pipeline/python-tests` not found or access denied!
I’m glad you asked this question because it bumped this super-useful script up to the top and I almost certainly otherwise would not have found it!
Things to check in using this script:
you need to change gitlab.example.com to your own instance.
If your instance has a verifiable certificate (signed by a known and trusted CA), you can remove the verify=False which will give you the InsecureRequestWarning
For the second line–that’s specific to your code or how you’re running it. I’m not including anything specific to the project in the validation script (I used the Python3 version) and ensured I had requests installed via Pip in my default environment.