Skip to main content

Search code patterns across GitLab groups and export audit results.

Project description

GitLab Super Search

GitLab Super Search banner

Search for patterns across every project in a GitLab group and export matching files to Excel. YAML is searched by default, with presets and custom extension filters available when needed.

Installation

With uv (recommended):

uv tool install gitlab-super-search

Or with pip:

pip install gitlab-super-search

For local development:

python -m venv .venv
. .venv/bin/activate
python -m pip install -e .

Prerequisites

Environment variables:

export GITLAB_URL="https://gitlab.example.com"
export GITLAB_TOKEN="glpat-xxxx"

Usage

glss \
  --group-path platform/k8s-manifests \
  --search "image: nginx" \
  --preset kubernetes \
  --out nginx_images.xlsx

Running from a checkout still works:

python glss.py --help

Presets

Preset Extensions
Kubernetes kubernetes .yaml, .yml, .json
Terraform terraform .tf, .tfvars, .hcl
GitLab CI ci .yaml, .yml, .json, .toml
Docker containers .yaml, .yml, .json, Dockerfile

Use presets with --preset <name>.

Custom extensions

  • --extensions json,xml : search only the listed extensions.
  • --extensions all : search all indexed file types.

--preset and --extensions cannot be used together.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab_super_search-0.4.2.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitlab_super_search-0.4.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file gitlab_super_search-0.4.2.tar.gz.

File metadata

  • Download URL: gitlab_super_search-0.4.2.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gitlab_super_search-0.4.2.tar.gz
Algorithm Hash digest
SHA256 55c63cdbb5e215eb41a35ee52c83ea0a880eb9fe3a52a9c705e72bbb6996545b
MD5 59d6de74c5a48e6debbea6f59aaf9edf
BLAKE2b-256 05257f77c591b2c2eef947a2ac47d3bbe4feae6f3705c8ef8d921ac8f4c1e305

See more details on using hashes here.

File details

Details for the file gitlab_super_search-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gitlab_super_search-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2712437393d5ff5dfcb58dc559877b500c7874349095ff416390c32c8f3e0047
MD5 00c6f20eb696decdcf80bab9b233b1b0
BLAKE2b-256 ec1195b25e5691362c3c36f79dbe1761c7383c4b0ab74b7badeb8d8797c1d149

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page