show_depsdev_deps

command
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

DepsDev Synchronization

Installation

  1. Clone this repository:

    git clone https://github.com/HUSTSecLab/criticality_score.git
    cd criticality_score
    
  2. Install dependencies:

    • Ensure you have Go installed. You can install Go from here.
    • Run go mod tidy to install required Go dependencies.
    go mod tidy
    
  3. Set up PostgreSQL database:

    • Ensure you have PostgreSQL installed and running.
    • Configure the database with the appropriate tables (git_metrics with at least the git_link and ecosystem columns).
    • The application assumes that the database has a table called git_metrics that contains project information (e.g., GitHub, GitLab, Bitbucket links).

Usage

  1. Run the synchronization script:

    To start the synchronization process, use the following command:

    go run main.go --config=config.json
    

    This will:

    • Initialize the database connection using the provided config.json.
    • Fetch the Git project links from the git_metrics table.
    • For each project, query the deps.dev API to retrieve the latest version and dependent information.
    • Update the depsdev_count in the git_metrics table with the dependent count for each project.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL