Automatically generated diagrams for OSCAL models.
This project uses erdantic to generate OSCAL model diagrams based on compliance-trestle's pydantic models.
See diagrams for the latest diagrams generated via GitHub Actions.
Make sure you have Docker installed + running and run:
docker build -t oscal-diagrams .
docker run --rm --volume $(pwd)/diagrams:/opt/diagrams oscal-diagrams
This will generate the diagrams into a diagrams
folder in the current directory.
To generate the diagrams locally:
- Install Conda
- Install erdantic:
conda install -c drivendata erdantic
- Install compliance-trestle:
pip install compliance-trestle
- Generate the diagrams:
./generate_diagrams.sh
In case you don't want to install erdantic using conda, you can follow the guide in their repository.