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

Enable using local repository instead cloning a remote repo - ScanRepository #767

Merged
merged 7 commits into from
Oct 20, 2024

Conversation

eranturgeman
Copy link
Contributor

@eranturgeman eranturgeman commented Oct 15, 2024

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.
  • Update documentation about new features / new supported technologies

This PR introduces a new ability that enables Frogbot ScanRepository to work with local repository rather than cloning the remote repo within its process.
This enables to manipulate a repo we want to scan from within a CI (prior to Frogbot run) and use the manipulated repo instead of the repo existing in the remote.
For example - If we do not have build for all sub repositories in our remote repo, but we do want to build them in order to scan them (required for the scan and the fix process), we can build our project in the CI, and make Frogbot use the buit repository.

In order to use this feature we need to set a new env var: JF_USE_LOCAL_REPOSITORY and to navigate to the local repository's root BEFORE frogbot starts its execution

@eranturgeman eranturgeman added safe to test Approve running integration tests on a pull request new feature Automatically generated release notes labels Oct 15, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 15, 2024
utils/consts.go Outdated Show resolved Hide resolved
utils/git.go Outdated Show resolved Hide resolved
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Oct 20, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 20, 2024
@eranturgeman eranturgeman merged commit 55d80fa into jfrog:dev Oct 20, 2024
32 of 33 checks passed
Copy link
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants