Skip to content

Instantly share code, notes, and snippets.

AndrewOfC

Block or report user

Report or block AndrewOfC

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AndrewOfC
AndrewOfC / gitlab_ci_lint.py
Created Feb 13, 2019
Q&D python for command line to validate .gitlab-ci.yml
View gitlab_ci_lint.py
#! /usr/bin/python
#
# script to validate .gitlab-ci.yml
#
import sys
import requests
import json
def main():
r = requests.post("https://gitlab.example.com/api/v4/ci/lint", json={ 'content': file(sys.argv[1], 'r').read() })
You can’t perform that action at this time.