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

Git Audit Command #285

Merged
merged 39 commits into from
Jan 29, 2025
Merged

Git Audit Command #285

merged 39 commits into from
Jan 29, 2025

Conversation

attiasas
Copy link
Contributor

@attiasas attiasas commented Jan 9, 2025

  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....
  • All static analysis checks passed.
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • Updated the Contributing page / ReadMe page / CI Workflow files if needed.
  • All changes are detailed at the description. if not already covered at JFrog Documentation, new documentation have been added.

Add option to audit local Git repositories

  • Acts as a "wrapper" to audit command, adding the .git context to the audit.
  • Reports analytics to Git Repositories tab at JFrog platform

@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Jan 9, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 9, 2025
@attiasas attiasas added the ignore for release Automatically generated release notes label Jan 9, 2025
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Jan 12, 2025
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Jan 21, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 21, 2025
@attiasas attiasas requested a review from orz25 January 26, 2025 13:44
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Jan 28, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 28, 2025
@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Jan 28, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 28, 2025
Copy link

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


@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Jan 28, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 28, 2025
Copy link

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/jfrog/jfrog-cli-security 0.00% (ø)
github.com/jfrog/jfrog-cli-security/cli 0.00% (ø)
github.com/jfrog/jfrog-cli-security/cli/docs 0.00% (ø)
github.com/jfrog/jfrog-cli-security/cli/docs/git/audit 0.00% (ø)
github.com/jfrog/jfrog-cli-security/cli/docs/git/contributors 0.00% (ø)
github.com/jfrog/jfrog-cli-security/commands/audit 0.00% (ø)
github.com/jfrog/jfrog-cli-security/commands/git/audit 0.00% (ø)
github.com/jfrog/jfrog-cli-security/commands/git/contributors 0.00% (ø)
github.com/jfrog/jfrog-cli-security/tests/utils 0.00% (ø)
github.com/jfrog/jfrog-cli-security/tests/utils/integration 0.00% (ø)
github.com/jfrog/jfrog-cli-security/utils/gitutils 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/jfrog/jfrog-cli-security/cli/docs/flags.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/cli/docs/git/audit/help.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/cli/docs/git/contributors/help.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/cli/gitcommands.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/cli/scancommands.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/cli/utils.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/commands/audit/audit.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/commands/git/audit/gitaudit.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/commands/git/audit/gitauditparams.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/commands/git/contributors/countcontributors.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/tests/utils/integration/test_integrationutils.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/tests/utils/test_utils.go 0.00% (ø) 0 0 0
github.com/jfrog/jfrog-cli-security/utils/gitutils/gitmanager.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/jfrog/jfrog-cli-security/audit_test.go
  • github.com/jfrog/jfrog-cli-security/commands/git/contributors/countcontributors_test.go
  • github.com/jfrog/jfrog-cli-security/git_test.go
  • github.com/jfrog/jfrog-cli-security/utils/gitutils/gitmanager_test.go
  • github.com/jfrog/jfrog-cli-security/xsc_test.go

@attiasas attiasas merged commit f9974b8 into jfrog:dev Jan 29, 2025
56 checks passed
@attiasas attiasas deleted the git_audit_cmd_basic branch January 29, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore for release Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants