guibranco / projects-monitor

⚙️🔔 GitHub projects monitor
https://guilherme.straccini.com/projects-monitor/
MIT License
3 stars 0 forks source link

[FEATURE] GitGuardian Integration for Secret Leak Detection #627

Open guibranco opened 1 day ago

guibranco commented 1 day ago

Description:

In the Projects Monitor project, we need to implement a GitGuardian integration to detect any possible secret leaks. This integration should consist of a class that communicates with GitGuardian using the GuiBranco\Pancake\Request class to manage HTTP requests. Additionally, it should include a SQL table in MySQL/MariaDB to persist GitGuardian data for further analysis and reference.

Requirements:

  1. GitGuardian Communication Class

    • Create a new class to interface with GitGuardian's API.
    • Use GuiBranco\Pancake\Request to manage HTTP requests for data retrieval from GitGuardian.
  2. Database Persistence

    • Define a SQL table structure in MySQL/MariaDB to store data from GitGuardian.
    • Ensure the table is optimized for querying recent data and historical records.
  3. Testing

    • Unit Tests: Cover all functionalities of the GitGuardian integration class.
    • Integration Tests: Use WireMock to mock GitGuardian API responses and validate end-to-end functionality.

Acceptance Criteria:

gitauto-ai[bot] commented 1 day ago

Click the checkbox below to generate a PR!

@guibranco, You have 3 requests left in this cycle which refreshes on 2024-11-21 10:07:38+00:00. If you have any questions or concerns, please contact us at info@gitauto.ai.