Skip to content
Snippets Groups Projects
Unverified Commit 33de853b authored by Dustin Rodrigues's avatar Dustin Rodrigues Committed by GitHub
Browse files

Merge pull request #8625 from dtrodrigues/gitlab-release

shared_audits: ensure GitLab API response is valid
parents a879e8c3 6a0f2b66
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ module SharedAudits
@gitlab_release_data ||= {}
@gitlab_release_data[id] ||= begin
out, _, status= curl_output(
"--request", "GET", "https://gitlab.com/api/v4/projects/#{user}%2F#{repo}/releases/#{tag}"
"https://gitlab.com/api/v4/projects/#{user}%2F#{repo}/releases/#{tag}", "--fail"
)
return unless status.success?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment