Skip to main content

Sign off git certificates for tasks and check them.

Project description

git-sign-off

Add and check git signatures to your repository to check conditions/tasks automatically.

Do you like automation?! So do we!

Check any command success through git sign-off calls in your git pre-commit hooks. On your CI, check that they are up-to-date with a simple git sign-off-check.

This way you can even ensure your fellow developers have their hooks installed and running correctly.

Installation

pip install git-sign-off

This installs programs git-sign-off and git-sign-off-check. Use them directly or through git commands.

Usage

Create certificate

Prove that a command ran successfully locally through:

git sign-off -c bash <run_my_local_sensitive_test.sh>

If the "challenge" command executes successfully a certificate is added to your commit. You will then see the message:

Added git-sign-off signature for task 'default'.

Check certificate

Useful in CI or for other developers:

git sign-off-check

If your certificate is up-to-date you will see:

Signature check for task 'default' passed.

If your certificate is not up-to-date you will have an error like:

SignatureError: Outdated signature found. Latest signature was generated after commit: 5c1537d3502b8bc17172b5a03a4531b010024754

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

git-sign-off-0.0.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

git_sign_off-0.0.0-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

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