Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to clone git with history in PDSPrepare #3393

Open
lorriborri opened this issue Aug 27, 2024 · 0 comments
Open

Add possibility to clone git with history in PDSPrepare #3393

lorriborri opened this issue Aug 27, 2024 · 0 comments

Comments

@lorriborri
Copy link
Member

lorriborri commented Aug 27, 2024

Situation

PDSPrepare has two flags to clone and upload the git history but it can not be defined via the sechub configuration

Wanted

User should define if he wants the PDSPrepare to download git history, when secretScan is defined or not

Solution

  1. Merge variables pds.prepare.git.history.wanted and pds.prepare.git.autoremove.gitfiles.beforeupload to one variable (pds.prepare.add.scm.histroy)
  2. Add addScmHistory to the sechub configuration
      "remote" : {
        "location" : "https://path-to-my-git-exmaple/repository.git", 
        "type" : "git",
        "addScmHistory" : "true"
      }
  1. Make PDSPrepare clone with history when secretscan and addScmHistory is set to true
  2. Add Warning when addScmHistory true but no secretScan defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant