Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.54 KB

README.rst

File metadata and controls

49 lines (33 loc) · 1.54 KB

ReachableCode

ReachableCode is a collection of pipelines for analyzing code reachability. It integrates with ScanCode.io as a pipeline plugin and uses tools like (Atom, CPG, .. ) to determine whether vulnerable code symbols are reachable within a project's codebase.

Other information:

Requirements

See also the next section for detailed instructions.

Local installation and usage test

To install:

  • Clone reachablecode locally side-by-side: git clone https://github.com/aboutcode-org/reachablecode
  • Clone ScanCode.io locally side-by-side: git clone https://github.com/aboutcode-org/scancode.io
  • Change to the scancode.io directory and run make dev then source bin/activate
  • Run pip install --editable ../reachablecode
  • Run ScanCode.io with ./manage.py runserver --insecure and open the URL in your browser. There is a new "analyze_atom_reachability" pipeline available when creating a new project.

Development

  • Install requirements and dependencies using make dev
  • Then source venv/bin/activate

Testing:

  • To run tests: pytest -vvs