Skip to content

[FEATURE] [Diver] Look for hotwords in all commits of all branches of all Git repositories of organization #202

@pylapp

Description

@pylapp

Description

As a FaaS organization administrator,
I want to look in a repository for hot words
So that I can check if sensitive data have been added, versioned or badly removed

Definition of Done

  • Parameter "--help"
  • Parameter "--github ORG"
  • Parameter "--gitlab ORG"
  • Parameter "--path REPO"
  • Parameter "--words FILE"
  • Log in standard output traces (elasped time, clone repo, branch, commit)
  • Log in standard output the hotword matchs
  • Log in file the hotword matchs
  • Log in standard output the summary (number of repos, number of matchs, etc.)

Details

  • Python script
  • Using existing scripts if relevant
  • words parameter is mandatory
  • only one in path or github or gitlab parameter must be used
  • log file path defined in script

Algorithm:

  1. Clone the Git repository with all its branches
  2. Iterate on each branch
  3. Iterate on each commit of each branch
  4. Iterator on each file of each commit of each branch
  5. Check if sensitive words defined in a side files are available (one word by line)
  6. Log the repo, commit, branch, file and hotword if found
  7. Iterate for all repos of the organization

Notes

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfeature-diverEnhancement related to the diver featurefeature-newEnhancement for a new feature (which has not its GitHub label)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions