Module: Octokit::Client::CodeScanning
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/code_scanning.rb
Overview
Methods for the code scanning alerts API
Instance Method Summary collapse
-
#get_sarif_upload_information(repo, sarif_id, options = {}) ⇒ Sawyer::Resource
Gets information about a SARIF upload.
-
#upload_sarif_data(repo, file, sha, ref, options = {}) ⇒ Sawyer::Resource
Uploads SARIF data containing the results of a code scanning analysis.
Instance Method Details
#get_sarif_upload_information(repo, sarif_id, options = {}) ⇒ Sawyer::Resource
Gets information about a SARIF upload
37 38 39 |
# File 'lib/octokit/client/code_scanning.rb', line 37 def get_sarif_upload_information(repo, sarif_id, = {}) get "#{Repository.path repo}/code-scanning/sarifs/#{sarif_id}", end |
#upload_sarif_data(repo, file, sha, ref, options = {}) ⇒ Sawyer::Resource
Uploads SARIF data containing the results of a code scanning analysis
22 23 24 25 26 27 28 |
# File 'lib/octokit/client/code_scanning.rb', line 22 def upload_sarif_data(repo, file, sha, ref, = {}) [:sarif] = compress_sarif_data(file) [:commit_sha] = sha [:ref] = ref post "#{Repository.path repo}/code-scanning/sarifs", end |