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

chore: Add support for remote-repo-url flag [CFG-2085] #3599

Merged
merged 2 commits into from
Aug 17, 2022

Conversation

ofekatr
Copy link
Contributor

@ofekatr ofekatr commented Aug 17, 2022

What this does

Add support for remote-repo-url flag in the new engine. This flag will override the remote repository URL when sharing results via --report --remote-repo-url=<new-url>.

If the target-name flag is used too, then the --target-name will override that for the project name.

PR https://github.com/snyk/snyk-iac-test/pull/89 will process the remote-repo-url flag in snyk-iac-test.

Notes for the reviewer

To test:

go build -o snyk-iac-test .
  • run SNYK_IAC_POLICY_ENGINE_PATH=<path-to-snyk-iac-test> snyk-dev iac test test/fixtures/iac/terraform/sg_open_ssh.tf --experimental --report --remote-repo-url=yolo
  • verify the project was created under the name yolo.
  • run SNYK_IAC_POLICY_ENGINE_PATH=<path-to-snyk-iac-test> snyk-dev iac test test/fixtures/iac/terraform/sg_open_ssh.tf --experimental --report --remote-repo-url=oloy --target-name=yolo
  • verify the project was created under the name yolo.

More information

CFG-2085

@ofekatr ofekatr force-pushed the chore/add-remote-repo-url-iac-v2 branch 2 times, most recently from 51235d5 to 9b18e96 Compare August 17, 2022 13:13
@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2022

Warnings
⚠️

You've modified files in src/ directory, but haven't updated anything in test folder. Is there something that could be tested?

Generated by 🚫 dangerJS against 18e8c87

@ofekatr ofekatr requested a review from ipapast August 17, 2022 13:26
@ofekatr ofekatr marked this pull request as ready for review August 17, 2022 13:26
@ofekatr ofekatr requested a review from a team as a code owner August 17, 2022 13:26
@ofekatr ofekatr force-pushed the chore/add-remote-repo-url-iac-v2 branch from 9b18e96 to fb350fb Compare August 17, 2022 15:57
@ofekatr ofekatr enabled auto-merge August 17, 2022 15:58
@ipapast
Copy link
Contributor

ipapast commented Aug 17, 2022

this is not going to work with the current snyk-iac-test version. could you make sure to update the checksums again after this PR is merged? https://github.com/snyk/snyk-iac-test/pull/90

@ofekatr ofekatr force-pushed the chore/add-remote-repo-url-iac-v2 branch from fb350fb to 18e8c87 Compare August 17, 2022 17:58
@ofekatr
Copy link
Contributor Author

ofekatr commented Aug 17, 2022

this is not going to work with the current snyk-iac-test version. could you make sure to update the checksums again after this PR is merged? https://github.com/snyk/snyk-iac-test/pull/90

Forgot to push after I changed the flag name, thanks for catching this 👍
I've updated the checksum values to be the ones for v0.21.1

@ofekatr ofekatr merged commit 43dcec6 into master Aug 17, 2022
@ofekatr ofekatr deleted the chore/add-remote-repo-url-iac-v2 branch August 17, 2022 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants