This repository contains code which demonstrates Dev-Sec-Ops using a FastAPI
application which predicts the flower class using the IRIS dataset (https://scikit-learn.org/stable/auto_examples/datasets/plot_iris_dataset.html)
- Create a fork of the repo using the
fork
button. - Clone your fork using
git clone https://www.github.com/<your-username>/mlops-iris.git
- Install dependencies using
pip3 install -r requirements.txt
- Run application using
python3 main.py
- Run tests using
pytest
unittest
: Run the python unit tests using pytestcodecoverage
: Analyze code quality using codecov and upload resultscontainer-security
: Scan docker image using anchore and upload SARIF report artifactupload_zip
: Package code and upload as artifact
- Fix badge to show coverage for your repo. (hint: find correct link for badge from codecov.io)
- Add OS to matrix strategy along with PYTHON to test with different operating systems like
ubuntu-latest
,windows-latest
etc. - Improve code coverage and bring it above 95%
- Make a visualisation for sarif report using any tool. upload screenshot, image, html or pdf. Add it to the reports/ folder.
- Link to github repository as a comment on the submission (olympus portal). [uploading .txt is optional]