Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo for policy state #36

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/run-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
uses: gittuf/gittuf-installer@f31e69c7c18c7473cbce18ed69a559b945d3a738
with:
gittuf-version: 0.8.0
- name: Run demo with --no-prompt
- name: Install click with pip
run: |
pip install click
- name: Run demo with --automatic
run: |
python3 run-demo.py --no-prompt
python3 run-demo.py --automatic
- name: Run run deployments example with --automatic
run: |
python3 example_deployments.py --automatic

18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# gittuf/demo

A demo of gittuf.
A set of demos for gittuf. This repository contains two distinct demos:

`run-demo.py`
This demo showcases the basic features of gittuf. This includes creating
policies, recording changes in the rsl, and running gittuf verification.
You will see both the happy path, where verification is successful, and
the failing path, where verification is not successful.

`example_deployments.py`
This demo showcases some of the more involved features of gittuf.
This includes creating delagated policies as well as using multiple
keys with a set threshold for number of required signatures. From
the result of this script, you will see an example state of the
policy file in a deployment.

## Install gittuf

Expand Down Expand Up @@ -43,8 +56,7 @@ You will set up a directory structure as follows:

Where `keys` will be copied from this repository. You will create two
Git-compatible signing keys, one that is authorized for the demo policy and one
that is not. You will see how policies are created, commit changes and run
`gittuf` to verify, both on the happy and failing path:
that is not.

```bash
# Temporary playground
Expand Down
Loading
Loading