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

OTWO-6954 api for create scan project #1716

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

OTWO-6954 api for create scan project #1716

wants to merge 2 commits into from

Conversation

Niharika1117
Copy link
Contributor

No description provided.

@@ -63,4 +71,14 @@ def code_location_branch(url)
out, _err, _status = Open3.capture3("git ls-remote --symref #{url} HEAD | head -1 | awk '{print $2}'")
out.strip.sub(/refs\/heads\//, '')
end

def get_scan_api_data(url, path)
project = populate_project_from_forge(url, true)
Copy link
Contributor

@sig-krasnick sig-krasnick Mar 14, 2023

Choose a reason for hiding this comment

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

I'm a bit confused by this line. Why do we have to go to the forge? The project already exists on Openhub. Don't we need to pass in the codelocation.repository.url to the scan api?

We could pass in the project id into the api.

@Niharika1117 Niharika1117 force-pushed the OTWO-6954 branch 2 times, most recently from 39d509c to b515410 Compare March 21, 2023 13:23
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.

3 participants