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

fix: remove target.branch #3056

Merged
merged 1 commit into from
Mar 25, 2022
Merged

fix: remove target.branch #3056

merged 1 commit into from
Mar 25, 2022

Conversation

YairZ101
Copy link
Contributor

@YairZ101 YairZ101 commented Mar 24, 2022

What does this PR do?

Currently, when running a scan from a directory that is a part of a git repo we will save inside the target filed the repo remote URL and branch.
We are using the remote URL to get information for the contributing developers but we currently don't have any use for the branch.
In addition to that, a side affect of sending the branch inside the target is that it gets auto-assigned as the target-reference which is not the desired outcome.
Due to all the reasons I mentioned above we've decided to remove the branch from the target.

How should this be manually tested?

  1. Enable the iacCliShareResults FF.
  2. Use the command snyk iac test --report to test your IaC files.
  3. Check that the projects have been created successfully in the platform WITHOUT target-reference.

@YairZ101 YairZ101 requested a review from ofekatr March 24, 2022 15:26
@YairZ101 YairZ101 force-pushed the fix/target-branch branch 3 times, most recently from 16f29f3 to 66c8b2b Compare March 24, 2022 15:57
@YairZ101 YairZ101 changed the title fix: target.branch will now have correct value fix: remove target.branch Mar 24, 2022
@YairZ101 YairZ101 closed this Mar 24, 2022
@YairZ101 YairZ101 reopened this Mar 24, 2022
@YairZ101 YairZ101 marked this pull request as ready for review March 24, 2022 20:18
@YairZ101 YairZ101 requested a review from a team as a code owner March 24, 2022 20:18
Copy link
Contributor

@aron aron left a comment

Choose a reason for hiding this comment

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

👏 Nice @YairZ101 that fixed the issue beautifully.

@aron aron merged commit 0064077 into master Mar 25, 2022
@aron aron deleted the fix/target-branch branch March 25, 2022 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants