Socket
Socket
Sign inDemoInstall

mf-gitvars

Package Overview
Dependencies
2
Maintainers
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mf-gitvars

A tool to parse CI/CD variables from Gitlab API


Maintainers
2

Readme

GitVars

Use the Gitlab API to extract CI/CD variables and output them in a format useable for running projects locally.

Installation

pip install mf-gitvars --upgrade

Setup

Create an API key on Gitlab here and grant it read_api, read_repository permissions

Create a local configuration file and replace your token cat ~/.python-gitlab.cfg

[global]
default = momentfeed
ssl_verify = true
timeout = 5
api_version = 4

[momentfeed]
url = https://gitlab.com
private_token = [YOUR API TOKEN]

Usage

Find the gitlab project id on the project page here:

Gitlab Project Id

And then run with

$ mf-gitvars [project-id]

You will get an output for each environment and one for the global environment.

CLI Output

There is a special string for IntelliJ and you can paste that directly into your run configuration like so:

IntelliJ Run/Debug Config

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc