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

Config profile with repo API integration #797

Merged

Conversation

eranturgeman
Copy link
Contributor

@eranturgeman eranturgeman commented Dec 10, 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 includes the following changes:

  1. Passing Config Profile to Scan-Repo flow (if exists) so it can be utilized in the flow
  2. Introducing new env var that indicates whether we should use config profile or not
  3. Config Profile fetching is not trying to get a profile by name and by associated URL

The failing unit tests are due to a wrong setting in the CI (Currently, we don't run 'go generate' on unit tests, therefore a required package is not found).
I fixed the test.yml CI file and the tests are passing in my fork:
Screenshot 2024-12-16 at 11 30 51

depends on:
jfrog/jfrog-client-go#1057
jfrog/jfrog-cli-security#261

@eranturgeman eranturgeman changed the title Config profile with repo api integration Config profile with repo API integration Dec 10, 2024
@eranturgeman eranturgeman added safe to test Approve running integration tests on a pull request ignore for release Automatically generated release notes labels Dec 10, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 10, 2024
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 10, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 10, 2024
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 11, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 11, 2024
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 16, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 16, 2024
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 18, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 18, 2024
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 18, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 18, 2024
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 19, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 19, 2024
Copy link
Contributor

@attiasas attiasas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out my comments and fix tests

utils/params.go Outdated Show resolved Hide resolved
utils/params.go Show resolved Hide resolved
utils/params.go Outdated Show resolved Hide resolved
.github/workflows/test.yml Show resolved Hide resolved
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 22, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 22, 2024
@eranturgeman eranturgeman added the safe to test Approve running integration tests on a pull request label Dec 22, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Dec 22, 2024
Copy link
Contributor

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


@eranturgeman eranturgeman merged commit 802ca5b into jfrog:dev Dec 22, 2024
30 of 33 checks passed
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