-
Couldn't load subscription status.
- Fork 317
Spelling #107
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
Merged
Merged
Spelling #107
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
0091e8f
spelling: append
jsoref 4a8c99a
spelling: browser
jsoref fd54662
spelling: colleagues
jsoref c9e8b10
spelling: confidence
jsoref a4325ef
spelling: delimited
jsoref bb40f39
spelling: efficient
jsoref ae6953d
spelling: elements
jsoref b15d458
spelling: entry
jsoref 7cfffb2
spelling: experimental
jsoref 73a753b
spelling: features
jsoref ae67fe8
spelling: fragment
jsoref 030e29e
spelling: indices
jsoref f881c81
spelling: interval
jsoref 435081b
spelling: initialized
jsoref 32535a3
spelling: instance
jsoref 55e5c19
spelling: language
jsoref ddff6e7
spelling: locations
jsoref 085f86e
spelling: maximum
jsoref 276ce7e
spelling: mutual
jsoref 7800b9e
spelling: notification
jsoref 5ebaf10
spelling: occurred
jsoref a9d1c3a
spelling: organization
jsoref 5236d9b
spelling: otherwise
jsoref c655920
spelling: recursively
jsoref 5e36a98
spelling: parse
jsoref 903b47d
spelling: payloads
jsoref 9bc54a3
spelling: results
jsoref 9b643ce
spelling: subscribers
jsoref 346f1ce
spelling: accordion
jsoref f47261a
spelling: vulnerabilities
jsoref 64e01b4
spelling: vulnerability
jsoref 64d83f0
brand: YouTube
jsoref bf7bfc3
brand: scumblr
jsoref File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| <% if @notice.present? %> | ||
| $('#flash_messages').html("<%= escape_javascript(render :partial=>"shared/notification", :locals => {:message=>@notice}) %>"); | ||
| <% end %> | ||
| $("#subscibers").html("<%= escape_javascript(render :partial=>"subscription") %>"); | ||
| $("#subscribers").html("<%= escape_javascript(render :partial=>"subscription") %>"); | ||
| $("#subscribers-modal.open").html("<%= escape_javascript(render :partial=>"subscriber_list") %>"); | ||
| ready(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ def self.description | |
|
|
||
| def self.config_options | ||
| {:github_oauth_token =>{ name: "Github OAuth Token", | ||
| description: "Setting this token provides the access needed to search Github organziations or repos", | ||
| description: "Setting this token provides the access needed to search Github organizations or repos", | ||
| required: true | ||
| } | ||
| } | ||
|
|
@@ -58,15 +58,15 @@ def self.options | |
| default: "200", | ||
| type: :string}, | ||
| :search_terms => {name: "Search Strings", | ||
| description: "Provide newline delimieted search strings", | ||
| description: "Provide newline delimited search strings", | ||
| required: false, | ||
| type: :text}, | ||
| :json_terms => {name: "JSON Array Strings URL", | ||
| description: "Provide URL for JSON array of search terms", | ||
| required: false, | ||
| type: :string}, | ||
| :user => {name: "Scope To User Or Organizaton", | ||
| description: "Limit search to an Organizaton, User, or Repo Name.", | ||
| :user => {name: "Scope To User Or Organization", | ||
| description: "Limit search to an Organization, User, or Repo Name.", | ||
| required: false, | ||
| type: :string}, | ||
| :repo => {name: "Scope To Repository", | ||
|
|
@@ -126,7 +126,7 @@ def initialize(options={}) | |
|
|
||
| @clone_schema = @options[:clone_schema].to_s | ||
|
|
||
| # Set the max results if specified, otehrwise default to 200 results | ||
| # Set the max results if specified, otherwise default to 200 results | ||
| @options[:max_results] = @options[:max_results].to_i > 0 ? @options[:max_results].to_i : 200 | ||
|
|
||
| # Check to make sure either search terms or url was provided for search | ||
|
|
@@ -277,12 +277,12 @@ def parse_search(response, json_response, user_type) | |
| #search_metadata[:github_analyzer] = true | ||
| search_metadata[:github_analyzer] ||= {} | ||
| search_metadata[:github_analyzer][:owner] = search["repository"]["owner"]["login"] | ||
| search_metadata[:github_analyzer][:langugage] = search["repository"]["langugage"] | ||
| search_metadata[:github_analyzer][:language] = search["repository"]["language"] | ||
| search_metadata[:github_analyzer][:private] = search["repository"]["private"] | ||
| search_metadata[:github_analyzer][:account_type] = user_type | ||
| search_metadata[:github_analyzer][:git_clone_url] = "ssh://github.com/#{search["repository"]["full_name"]}.git" | ||
|
|
||
| # Define data for vulnerablity object | ||
| # Define data for vulnerability object | ||
| search_metadata[:github_analyzer_vulnerabilities] ||= {} | ||
|
|
||
| # Parse out text matches if there are any | ||
|
|
@@ -312,7 +312,7 @@ def parse_search(response, json_response, user_type) | |
| vuln.code_fragment = snippit["fragment"] | ||
| vuln.match_location = snippit["property"] | ||
|
|
||
| # Append the github vulns to the vulnerablities array | ||
| # Append the github vulns to the vulnerabilities array | ||
| vulnerabilities << vuln | ||
| rescue => e | ||
| create_event("Unable to add metadata.\n\n. Exception: #{e.message}\n#{e.backtrace}", "Warn") | ||
|
|
@@ -339,7 +339,7 @@ def parse_search(response, json_response, user_type) | |
| res.metadata.merge!({"github_analyzer" => search_metadata[:github_analyzer]}) | ||
| res.save! | ||
| @results << res | ||
| # Do not create new result simply append vulns to resut | ||
| # Do not create new result simply append vulns to results | ||
| else | ||
| github_result = Result.new(url: search["repository"]["html_url"], title: search["repository"]["full_name"], domain: "github.com", metadata: {"github_analyzer" => search_metadata[:github_analyzer]}) | ||
| github_result.save! | ||
|
|
@@ -386,13 +386,13 @@ def run | |
| end | ||
|
|
||
| if response.nil? | ||
| @retry_interavl = 0 | ||
| @retry_interval = 0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This series |
||
| next | ||
| end | ||
|
|
||
| # Retry up to two times if we hit a retry_after exception or rate limit exception | ||
| if @retry_interval > 2 | ||
| @retry_interavl = 0 | ||
| @retry_interval = 0 | ||
| next | ||
| else | ||
| @retry_interval += 1 | ||
|
|
@@ -419,7 +419,7 @@ def run | |
|
|
||
| # Only return max results and truncate any extras | ||
| if @results.length >= @options[:max_results] | ||
| create_event("Hit maximium results limit\n\n. Exception: #{@options[:max_results].to_s}", "Warn") | ||
| create_event("Hit maximum results limit\n\n. Exception: #{@options[:max_results].to_s}", "Warn") | ||
| return [] | ||
| end | ||
| rate_limit_sleep(response.headers[:x_ratelimit_remaining], response.headers[:x_ratelimit_reset]) | ||
|
|
@@ -431,9 +431,9 @@ def run | |
| # Parse out the first page of results | ||
| parse_search(response, json_response, type) | ||
|
|
||
| # Only return max results and truncate any extras (could be more efficent) | ||
| # Only return max results and truncate any extras (could be more efficient) | ||
| if @results.length >= @options[:max_results] | ||
| create_event("Hit maximium results limit\n\n. Exception: #{@options[:max_results].to_s}", "Warn") | ||
| create_event("Hit maximum results limit\n\n. Exception: #{@options[:max_results].to_s}", "Warn") | ||
| #return @results[0..@options[:max_results].to_i] | ||
| return [] | ||
| end | ||
|
|
@@ -472,12 +472,12 @@ def run | |
| next | ||
| end | ||
| json_response = JSON.parse(response) | ||
| # prase restuls for each page | ||
| # parse results for each page | ||
| parse_search(response, json_response, type) | ||
|
|
||
| # only return max results and truncate any extras (could be more efficent) | ||
| # only return max results and truncate any extras (could be more efficient) | ||
| if @results.length >= @options[:max_results] | ||
| create_event("Hit maximium results limit\n\n. Exception: #{@options[:max_results].to_s}", "Warn") | ||
| create_event("Hit maximum results limit\n\n. Exception: #{@options[:max_results].to_s}", "Warn") | ||
| return [] | ||
| end | ||
| rate_limit_sleep(response.headers[:x_ratelimit_remaining], response.headers[:x_ratelimit_reset]) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the correct fix -- I don't have enough context.