A Sony Ci api client
pdm install
Create a file called .cred
with the following contents, and add your credentials:
export CI_USERNAME=
export CI_PASSWORD=
export CI_CLIENT_ID=
export CI_CLIENT_SECRET=
export CI_WORKSPACE_ID=
Activate the variables:
source .cred
Alternate notation: (May not be available in your terminal)
. .cred
Run the cli with ci
$ ci -h
Usage: ci [OPTIONS] COMMAND [ARGS]...
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────╮
│ --version -v Show the version and exit. │
│ --token -t TEXT Sony CI token. [env var: TOKEN] [default: None] │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or │
│ customize the installation. │
│ --help -h Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────────╮
│ login Login to Sony CI. │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
ci login
- Install ggshield
pip install ggshield
# or
brew install gitguardian/tap/ggshield
- Login to gitguardian
ggshield auth login
- Install the pre-commit hooks
pre-commit install