Skip to main content
Version: 7.0

Examples and templates

Example repository

All Passwork secret management examples live in a repository on GitHub:

https://github.com/passwork-me/passwork-integration-examples

The repository includes ready-to-use scripts, CI/CD configurations, and Docker scenarios for managing secrets.

What's inside

CLI examples

The cli folder contains practical passwork-cli usage samples:

ModeDemonstrates
execRunning commands with secrets in environment variables
getRetrieving individual values for bash scripts
updateUpdating and rotating secrets
apiMaking direct API calls from the command line

Additional examples:

  • GitLab CI and GitHub Actions integration;
  • using the CLI Docker image in pipelines;
  • injecting secrets into deploy scripts.

Python examples

The python folder includes scripts for advanced automation:

  • Password rotation — generate, update target system, store in Passwork.
  • Integrity checks — validate that stored credentials still work.
  • Secret migration — import from .env files or other systems.
  • Bulk operations — update tags, move records across folders.

CI/CD pipelines

The pipelines folder provides ready-made configurations:

  • .gitlab-ci.yml — GitLab CI examples
  • GitHub Actions workflows
  • Samples for additional CI platforms

Quick start

1. Clone the repository

git clone https://github.com/passwork-me/passwork-integration-examples.git
cd passwork-integration-examples

2. Set up your environment

export PASSWORK_HOST="https://passwork.example.com"
export PASSWORK_TOKEN="your_access_token"
export PASSWORK_MASTER_KEY="your_master_key" # if needed

3. Run an example

# CLI example
cd cli
./exec-example.sh

# Python example
cd python
pip install -r requirements.txt
python rotation_example.py

Share your work

Have your own Passwork integration examples? We welcome pull requests to the passwork-integration-examples repository.

Contributors are credited so others can learn about your work.

ResourceLink
Examples repositorygithub.com/passwork-me/passwork-integration-examples
CLI examplespasswork-integration-examples/cli
Python examplespasswork-integration-examples/python
Python connector (source)github.com/passwork-me/passwork-python