Git Product home page Git Product logo

devsecops-iris's Introduction

Dev-Sec-Ops Demo/Assignment

codecov

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)

Running Instructions

  • 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

CI/CD

  • unittest: Run the python unit tests using pytest
  • codecoverage: Analyze code quality using codecov and upload results
  • container-security: Scan docker image using anchore and upload SARIF report artifact
  • upload_zip: Package code and upload as artifact

Assignment Tasks

  • 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.

Submission

  • Link to github repository as a comment on the submission (olympus portal). [uploading .txt is optional]

devsecops-iris's People

Contributors

dependabot[bot] avatar psushi avatar zjesko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.