Skip to content

Commit

Permalink
Switch specs to use rails goat
Browse files Browse the repository at this point in the history
Previously this was using a previous maintainer's project, this way
we use something more or less standard, the Rails Goat project.
https://github.com/OWASP/railsgoat
  • Loading branch information
bermannoah committed Mar 28, 2022
1 parent b068f8f commit d42e326
Show file tree
Hide file tree
Showing 7 changed files with 674 additions and 272 deletions.
10 changes: 4 additions & 6 deletions lib/github_check_run_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,17 @@ def run
endpoint_url,
create_check_payload
)['id']
puts id
@summary = @report_adapter.summary(@report)
@annotations = @report_adapter.annotations(@report)
@conclusion = @report_adapter.conslusion(@report)

puts @summary

result = {}
@annotations.each_slice(MAX_ANNOTATIONS_SIZE) do |annotations|
result.merge(client_patch(id, annotations))
@annotations.each_slice(MAX_ANNOTATIONS_SIZE) do |annotation|
post_result = client_patch(id, annotation)
result.merge(post_result)
puts post_result
end
result
puts result
end

private
Expand Down
171 changes: 0 additions & 171 deletions spec/fixtures/event.json

This file was deleted.

Loading

0 comments on commit d42e326

Please sign in to comment.