Skip to content

r2c-CSE/bulk-add-bb-scm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulk-add Bitbucket Data Center SCM configs to Semgrep

Creates Semgrep SCM configs for a list of Bitbucket project keys from a YAML file.

Setup

uv venv
source .venv/bin/activate
uv pip install -r requirements.txt

You can also set up your environment using pip instead of uv:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

YAML format

bitbucket_project_keys.yaml:

bitbucket_project_keys:
  - MYPROJECT
  - OTHERPROJECT

Run

Set env vars, then run:

export SEMGREP_DEPLOYMENT_ID=12345
export SEMGREP_API_TOKEN=your_semgrep_api_token
export BITBUCKET_URL=https://bitbucket.example.com
export BITBUCKET_TOKEN=your_bitbucket_token

python bulk_add_bb_scm.py bitbucket_project_keys.yaml

About

Bulk-add Bitbucket Data Center SCM configs to Semgrep

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages