command
Version:
v0.0.1-alpha
Opens a new window with list of versions in this module.
Published: Dec 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
DepsDev Synchronization
Installation
-
Clone this repository:
git clone https://github.com/HUSTSecLab/criticality_score.git
cd criticality_score
-
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
-
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
-
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.