diff --git a/lib/octokit/client/code_scanning.rb b/lib/octokit/client/code_scanning.rb index 2ea8d8474..a03a07548 100644 --- a/lib/octokit/client/code_scanning.rb +++ b/lib/octokit/client/code_scanning.rb @@ -9,6 +9,144 @@ class Client # # @see https://docs.github.com/rest/code-scanning module CodeScanning + # Updates a code scanning default setup configuration + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # @param state [String] The desired state of code scanning default setup + # @param query_suite [String] CodeQL query suite to be used + # @param languages [Array] List of CodeQL languages to be analyzed + # + # @return [Sawyer::Resource] Action Run information + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration + def update_code_scanning_default_config(repo, state, query_suite = nil, languages = nil, options = {}) + options[:state] = state + options[:query_suite] = query_suite if query_suite + options[:languages] = languages if languages + + patch "#{Repository.path repo}/code-scanning/default-setup", options + end + + # Get Code Scanning Default Configuration + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # + # @return [Sawyer::Resource] CodeQl Default Setup Configuration Information + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration + def get_code_scanning_default_config(repo, options = {}) + get "#{Repository.path repo}/code-scanning/default-setup", options + end + + # Gets a CodeQL database for a language in a repository + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # @param language [String] + # + # @return [Sawyer::Resource] CodeQl Default Setup Configuration Information + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-codeql-database-for-a-repository + def get_codeql_database_for_repo(repo, language, options = {}) + get "#{Repository.path repo}/code-scanning/codeql/databases/#{language}", options + end + + # Lists the CodeQL databases that are available in a repository + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # + # @return [Array] List of CodeQL Databases + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#list-codeql-databases-for-a-repository + def list_codeql_database_for_repo(repo, options = {}) + get "#{Repository.path repo}/code-scanning/codeql/databases", options + end + + # Delete a specified code scanning analysis from a repository + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # @param analysis_id [Integer] ID of the code scanning analysis + # + # @return [Sawyer::Resource] Next Code Scanning Analysis Information + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository + def delete_code_scanning_analysis(repo, analysis_id, options = {}) + delete "#{Repository.path repo}/code-scanning/analyses/#{analysis_id}", options + end + + # Get a code scanning analysis for a repository + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # @param analysis_id [Integer] ID of the code scanning analysis + # + # @return [Sawyer::Resource] Code Scanning Analysis + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository + def get_code_scanning_analysis(repo, analysis_id, options = {}) + get "#{Repository.path repo}/code-scanning/analyses/#{analysis_id}", options + end + + # List code scanning analyses for a repository + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # + # @return [Array] List of Code Scanning Analyses + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository + def list_code_scanning_analysis(repo, options = {}) + paginate "#{Repository.path repo}/code-scanning/analyses", options + end + + # List instances of a code scanning alert + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # @param alert_number [Integer] The number that identifies an alert + # + # @return [Array] List of Code Scanning Alerts + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert + def list_instances_of_code_scanning_alert(repo, alert_number, options = {}) + paginate "#{Repository.path repo}/code-scanning/alerts/#{alert_number}/instances", options + end + + # Update a code scanning alert + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # @param alert_number [Integer] The number that identifies an alert + # @param state [String] The reason for dismissing or closing the alert. Required when the state is dismissed + # + # @return [Sawyer::Resource] Code Scanning Alert information + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#update-a-code-scanning-alert + def update_code_scanning_alert(repo, alert_number, state, reason, comment = nil, options = {}) + options[:state] = state + options[:dismissed_reason] = reason + options[:dismissed_comment] = comment if comment + + patch "#{Repository.path repo}/code-scanning/alerts/#{alert_number}", options + end + + # Gets a single code scanning alert + # + # @param repo [Integer, String, Repository, Hash] A GitHub repository + # @param alert_number [Integer] The number that identifies an alert + # + # @return [Sawyer::Resource] Code Scanning Alert + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#get-a-code-scanning-alert + def get_code_scanning_alert(repo, alert_number, options = {}) + get "#{Repository.path repo}/code-scanning/alerts/#{alert_number}", options + end + + # List code scanning alerts for a repository + # + # @param org [String] A GitHub organization + # + # @return [Array] Code Scanning Alert information + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository + def list_code_scanning_alerts_for_repo(repo, options = {}) + paginate "#{Repository.path repo}/code-scanning/alerts", options + end + + # List code scanning alerts for an organization + # + # @param org [String] A GitHub organization + # + # @return [Array] Code Scanning Alert information + # @see https://docs.github.com/en/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization + def list_code_scanning_alerts_for_org(org, options = {}) + paginate "orgs/#{org}/code-scanning/alerts", options + end + # Uploads SARIF data containing the results of a code scanning analysis # # @param repo [Integer, String, Repository, Hash] A GitHub repository diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_delete_code_scanning_analysis/deletes_a_code_scanning_analysis.json b/spec/cassettes/Octokit_Client_CodeScanning/_delete_code_scanning_analysis/deletes_a_code_scanning_analysis.json new file mode 100644 index 000000000..4f843eb47 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_delete_code_scanning_analysis/deletes_a_code_scanning_analysis.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "delete", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/analyses/225379147", + "body": { + "encoding": "UTF-8", + "base64_string": "e30=\n" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 06:04:21 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"4ff7c2d422afb104c75d7ed4869ad67d7d6c736670587a3a528fe04f23b92928\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4999" + ], + "X-Ratelimit-Reset": [ + "1717139061" + ], + "X-Ratelimit-Used": [ + "1" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "DB89:3A257F:386B555:38D393B:66596865" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "eyJuZXh0X2FuYWx5c2lzX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20v\ncmVwb3MvQ2FqYS1kZS1EYW5vL2FjdGl2ZS13cmFwcGVyL2NvZGUtc2Nhbm5p\nbmcvYW5hbHlzZXMvMjIwMTQ4NzQzIiwiY29uZmlybV9kZWxldGVfdXJsIjoi\naHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS9yZXBvcy9DYWphLWRlLURhbm8vYWN0\naXZlLXdyYXBwZXIvY29kZS1zY2FubmluZy9hbmFseXNlcy8yMjAxNDg3NDM/\nY29uZmlybV9kZWxldGUifQ==\n" + } + }, + "recorded_at": "Fri, 31 May 2024 06:04:21 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_alert/gets_a_code_scanning_alert_by_alert_number.json b/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_alert/gets_a_code_scanning_alert_by_alert_number.json new file mode 100644 index 000000000..7dd3ae6e1 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_alert/gets_a_code_scanning_alert_by_alert_number.json @@ -0,0 +1,127 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/alerts/1", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 06:29:16 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"7a64f67a8d59361cae1e1c75521af057194fbae0442eea02ee9f498567762723\"" + ], + "Last-Modified": [ + "Fri, 31 May 2024 06:28:14 GMT" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4994" + ], + "X-Ratelimit-Reset": [ + "1717139061" + ], + "X-Ratelimit-Used": [ + "6" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "E227:39E48B:394A257:39B53D9:66596E3C" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "eyJudW1iZXIiOjEsImNyZWF0ZWRfYXQiOiIyMDI0LTAzLTAyVDIzOjUzOjU0\nWiIsInVwZGF0ZWRfYXQiOiIyMDI0LTA1LTMxVDA2OjI4OjE0WiIsInVybCI6\nImh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vcmVwb3MvQ2FqYS1kZS1EYW5vL2Fj\ndGl2ZS13cmFwcGVyL2NvZGUtc2Nhbm5pbmcvYWxlcnRzLzEiLCJodG1sX3Vy\nbCI6Imh0dHBzOi8vZ2l0aHViLmNvbS9DYWphLWRlLURhbm8vYWN0aXZlLXdy\nYXBwZXIvc2VjdXJpdHkvY29kZS1zY2FubmluZy8xIiwic3RhdGUiOiJkaXNt\naXNzZWQiLCJmaXhlZF9hdCI6bnVsbCwiZGlzbWlzc2VkX2J5Ijp7ImxvZ2lu\nIjoiPEdJVEhVQl9MT0dJTj4iLCJpZCI6MjU1NTA3Mywibm9kZV9pZCI6Ik1E\nUTZWWE5sY2pJMU5UVXdOek09IiwiYXZhdGFyX3VybCI6Imh0dHBzOi8vYXZh\ndGFycy5naXRodWJ1c2VyY29udGVudC5jb20vdS8yNTU1MDczP3Y9NCIsImdy\nYXZhdGFyX2lkIjoiIiwidXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91\nc2Vycy88R0lUSFVCX0xPR0lOPiIsImh0bWxfdXJsIjoiaHR0cHM6Ly9naXRo\ndWIuY29tLzxHSVRIVUJfTE9HSU4+IiwiZm9sbG93ZXJzX3VybCI6Imh0dHBz\nOi8vYXBpLmdpdGh1Yi5jb20vdXNlcnMvPEdJVEhVQl9MT0dJTj4vZm9sbG93\nZXJzIiwiZm9sbG93aW5nX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20v\ndXNlcnMvPEdJVEhVQl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W5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFz\nIGNsZWFyIHRleHQuXG5UaGlzIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUg\nZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRleHQuXG5UaGlzIGV4cHJlc3Np\nb24gbG9ncyBzZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRl\neHQuXG5UaGlzIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUgZGF0YSAocGFz\nc3dvcmQpIGFzIGNsZWFyIHRleHQuXG5UaGlzIGV4cHJlc3Npb24gbG9ncyBz\nZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRleHQuXG5UaGlz\nIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFz\nIGNsZWFyIHRleHQuIn0sImxvY2F0aW9uIjp7InBhdGgiOiJvcmF0b3IvZGF0\nYWJhc2VfbWFuYWdlci5weSIsInN0YXJ0X2xpbmUiOjQxLCJlbmRfbGluZSI6\nNDEsInN0YXJ0X2NvbHVtbiI6MjYsImVuZF9jb2x1bW4iOjU5fSwiY2xhc3Np\nZmljYXRpb25zIjpbXX0sImluc3RhbmNlc191cmwiOiJodHRwczovL2FwaS5n\naXRodWIuY29tL3JlcG9zL0NhamEtZGUtRGFuby9hY3RpdmUtd3JhcHBlci9j\nb2RlLXNjYW5uaW5nL2FsZXJ0cy8xL2luc3RhbmNlcyJ9\n" + } + }, + "recorded_at": "Fri, 31 May 2024 06:29:16 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_analysis/gets_a_specific_code_scanning_analysis_for_a_repo.json b/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_analysis/gets_a_specific_code_scanning_analysis_for_a_repo.json new file mode 100644 index 000000000..0938f0dbf --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_analysis/gets_a_specific_code_scanning_analysis_for_a_repo.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/analyses/225379147", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 06:02:50 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"f803af2210f82d7e78d7e8386a83de5830eba71426e17636f094c7bf7d9d3395\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4971" + ], + "X-Ratelimit-Reset": [ + "1717135450" + ], + "X-Ratelimit-Used": [ + "29" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "DB1E:39ED30:39EECF6:3A56E95:6659680A" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "eyJyZWYiOiJyZWZzL2hlYWRzLzAuOSIsImNvbW1pdF9zaGEiOiJkYjg3NDQ5\nNjdlMWM5MWE4MDA3OWVjZWY3MGM3ZGI4MDU4NzFkZDNkIiwiYW5hbHlzaXNf\na2V5IjoiZHluYW1pYy9naXRodWItY29kZS1zY2FubmluZy9jb2RlcWw6YW5h\nbHl6ZSIsImVudmlyb25tZW50Ijoie1wiYnVpbGQtbW9kZVwiOlwibm9uZVwi\nLFwiY2F0ZWdvcnlcIjpcIi9sYW5ndWFnZTpweXRob25cIixcImxhbmd1YWdl\nXCI6XCJweXRob25cIixcInJ1bm5lclwiOlwiW1xcXCJ1YnVudHUtbGF0ZXN0\nXFxcIl1cIn0iLCJjYXRlZ29yeSI6Ii9sYW5ndWFnZTpweXRob24iLCJlcnJv\nciI6IiIsImNyZWF0ZWRfYXQiOiIyMDI0LTA1LTMxVDA1OjUxOjE1WiIsInJl\nc3VsdHNfY291bnQiOjIsInJ1bGVzX2NvdW50IjozOCwiaWQiOjIyNTM3OTE0\nNywidXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS9yZXBvcy9DYWphLWRl\nLURhbm8vYWN0aXZlLXdyYXBwZXIvY29kZS1zY2FubmluZy9hbmFseXNlcy8y\nMjUzNzkxNDciLCJzYXJpZl9pZCI6ImNiMTVkMTQwLTFmMTEtMTFlZi04ZjRl\nLTZlOGNkM2Y5Zjk1NyIsInRvb2wiOnsibmFtZSI6IkNvZGVRTCIsImd1aWQi\nOm51bGwsInZlcnNpb24iOiIyLjE3LjMifSwiZGVsZXRhYmxlIjp0cnVlLCJ3\nYXJuaW5nIjoiIn0=\n" + } + }, + "recorded_at": "Fri, 31 May 2024 06:02:50 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_default_config/gets_the_default_code_scanning_configuration_for_a_repository.json b/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_default_config/gets_the_default_code_scanning_configuration_for_a_repository.json new file mode 100644 index 000000000..b54072ae7 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_get_code_scanning_default_config/gets_the_default_code_scanning_configuration_for_a_repository.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/default-setup", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 05:52:54 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"4f62f5e8914ca80b26b9e7f6f9e7a86558f0b62b36cba50a06f3b67ec75dac3f\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4975" + ], + "X-Ratelimit-Reset": [ + "1717135450" + ], + "X-Ratelimit-Used": [ + "25" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "D880:3A257F:37C835D:382F223:665965B6" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "eyJzdGF0ZSI6ImNvbmZpZ3VyZWQiLCJsYW5ndWFnZXMiOlsicHl0aG9uIl0s\nInF1ZXJ5X3N1aXRlIjoiZGVmYXVsdCIsInVwZGF0ZWRfYXQiOiIyMDI0LTA1\nLTMxVDA1OjQ5OjIwWiIsInNjaGVkdWxlIjoid2Vla2x5In0=\n" + } + }, + "recorded_at": "Fri, 31 May 2024 05:52:54 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_get_codeql_database_for_repo/gets_a_CodeQL_database_for_a_language_in_a_repository.json b/spec/cassettes/Octokit_Client_CodeScanning/_get_codeql_database_for_repo/gets_a_CodeQL_database_for_a_language_in_a_repository.json new file mode 100644 index 000000000..c4a5f9f03 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_get_codeql_database_for_repo/gets_a_CodeQL_database_for_a_language_in_a_repository.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/codeql/databases/python", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 05:57:56 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"f29f1306624cac173bca60b1818e30bee823c8be64758052e76ebc0929539d3f\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "repo" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4974" + ], + "X-Ratelimit-Reset": [ + "1717135450" + ], + "X-Ratelimit-Used": [ + "26" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "D9C1:1B204E:37F8580:385FE5B:665966E4" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "eyJpZCI6NjM2MTY1NDgsIm5hbWUiOiJweXRob24tZGF0YWJhc2UiLCJsYW5n\ndWFnZSI6InB5dGhvbiIsInVwbG9hZGVyIjp7ImxvZ2luIjoiZ2l0aHViLWFj\ndGlvbnNbYm90XSIsImlkIjo0MTg5ODI4Miwibm9kZV9pZCI6Ik1ETTZRbTkw\nTkRFNE9UZ3lPREk9IiwiYXZhdGFyX3VybCI6Imh0dHBzOi8vYXZhdGFycy5n\naXRodWJ1c2VyY29udGVudC5jb20vaW4vMTUzNjg/dj00IiwiZ3JhdmF0YXJf\naWQiOiIiLCJ1cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL3VzZXJzL2dp\ndGh1Yi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20vdXNlcnMvZ2l0aHVi\nLWFjdGlvbnMlNUJib3QlNUQvcmVjZWl2ZWRfZXZlbnRzIiwidHlwZSI6IkJv\ndCIsInNpdGVfYWRtaW4iOmZhbHNlfSwiY29udGVudF90eXBlIjoiYXBwbGlj\nYXRpb24vemlwIiwic2l6ZSI6MzA4NTMzMjUsImNyZWF0ZWRfYXQiOiIyMDI0\nLTA1LTMxVDA1OjUxOjI0WiIsInVwZGF0ZWRfYXQiOiIyMDI0LTA1LTMxVDA1\nOjUxOjI1WiIsInVybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vcmVwb3Np\ndG9yaWVzLzcxMTcyOTU5MS9jb2RlLXNjYW5uaW5nL2NvZGVxbC9kYXRhYmFz\nZXMvcHl0aG9uIiwiY29tbWl0X29pZCI6ImRiODc0NDk2N2UxYzkxYTgwMDc5\nZWNlZjcwYzdkYjgwNTg3MWRkM2QifQ==\n" + } + }, + "recorded_at": "Fri, 31 May 2024 05:57:56 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_alerts_for_org/lists_code_scanning_alerts_for_an_organization.json b/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_alerts_for_org/lists_code_scanning_alerts_for_an_organization.json new file mode 100644 index 000000000..9241c4df6 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_alerts_for_org/lists_code_scanning_alerts_for_an_organization.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/orgs/caja-de-dano/code-scanning/alerts", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 04:36:58 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"739be43cbbc19575b6e61c6067f0d876bd83e33bc9897e04e443e7cfce851b98\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "public_repo, repo, security_events" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4988" + ], + "X-Ratelimit-Reset": [ + "1717131308" + ], + "X-Ratelimit-Used": [ + "12" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "C48C:1B0962:33F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mFwcGVyL25vdGlmaWNhdGlvbnN7P3NpbmNlLGFsbCxw\nYXJ0aWNpcGF0aW5nfSIsImxhYmVsc191cmwiOiJodHRwczovL2FwaS5naXRo\ndWIuY29tL3JlcG9zL0NhamEtZGUtRGFuby9hY3RpdmUtd3JhcHBlci9sYWJl\nbHN7L25hbWV9IiwicmVsZWFzZXNfdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHVi\nLmNvbS9yZXBvcy9DYWphLWRlLURhbm8vYWN0aXZlLXdyYXBwZXIvcmVsZWFz\nZXN7L2lkfSIsImRlcGxveW1lbnRzX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1\nYi5jb20vcmVwb3MvQ2FqYS1kZS1EYW5vL2FjdGl2ZS13cmFwcGVyL2RlcGxv\neW1lbnRzIn19XQ==\n" + } + }, + "recorded_at": "Fri, 31 May 2024 04:36:58 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_alerts_for_repository/lists_code_scanning_alerts_for_a_repository.json b/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_alerts_for_repository/lists_code_scanning_alerts_for_a_repository.json new file mode 100644 index 000000000..770d4ce60 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_alerts_for_repository/lists_code_scanning_alerts_for_a_repository.json @@ -0,0 +1,127 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/alerts", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 06:32:09 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"e51e035eba14b41c652c1b460bfc4edc58005e7569f81ad59badc9d23b0b3d25\"" + ], + "Last-Modified": [ + "Fri, 31 May 2024 06:28:14 GMT" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4992" + ], + "X-Ratelimit-Reset": [ + "1717139061" + ], + "X-Ratelimit-Used": [ + "8" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src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May 2024 06:32:09 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_analysis/lists_code_scanning_analyses_for_a_repository.json b/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_analysis/lists_code_scanning_analyses_for_a_repository.json new file mode 100644 index 000000000..f8700cde5 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_list_code_scanning_analysis/lists_code_scanning_analyses_for_a_repository.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/analyses", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 06:00:56 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"45d1b8ea16e5fcbf9840cb614436661386a365fd99aa15a585c72de15423a913\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4972" + ], + "X-Ratelimit-Reset": [ + "1717135450" + ], + "X-Ratelimit-Used": [ + "28" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "DAA6:3A257F:3839199:38A0F4F:66596798" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "W3sicmVmIjoicmVmcy9oZWFkcy8wLjkiLCJjb21taXRfc2hhIjoiZGI4NzQ0\nOTY3ZTFjOTFhODAwNzllY2VmNzBjN2RiODA1ODcxZGQzZCIsImFuYWx5c2lz\nX2tleSI6ImR5bmFtaWMvZ2l0aHViLWNvZGUtc2Nhbm5pbmcvY29kZXFsOmFu\nYWx5emUiLCJlbnZpcm9ubWVudCI6IntcImJ1aWxkLW1vZGVcIjpcIm5vbmVc\nIixcImNhdGVnb3J5XCI6XCIvbGFuZ3VhZ2U6cHl0aG9uXCIsXCJsYW5ndWFn\nZVwiOlwicHl0aG9uXCIsXCJydW5uZXJcIjpcIltcXFwidWJ1bnR1LWxhdGVz\ndFxcXCJdXCJ9IiwiY2F0ZWdvcnkiOiIvbGFuZ3VhZ2U6cH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bmcvY29kZXFsOmFuYWx5emUi\nLCJlbnZpcm9ubWVudCI6IntcImxhbmd1YWdlXCI6XCJweXRob25cIn0iLCJj\nYXRlZ29yeSI6Ii9sYW5ndWFnZTpweXRob24iLCJlcnJvciI6IiIsImNyZWF0\nZWRfYXQiOiIyMDI0LTAzLTAyVDIzOjUzOjU0WiIsInJlc3VsdHNfY291bnQi\nOjIsInJ1bGVzX2NvdW50IjozNiwiaWQiOjE4MzAwMzA0NSwidXJsIjoiaHR0\ncHM6Ly9hcGkuZ2l0aHViLmNvbS9yZXBvcy9DYWphLWRlLURhbm8vYWN0aXZl\nLXdyYXBwZXIvY29kZS1zY2FubmluZy9hbmFseXNlcy8xODMwMDMwNDUiLCJz\nYXJpZl9pZCI6IjIwM2IwNGRjLWQ4ZjAtMTFlZS04YjgwLTIwYWZmNzdhOTBk\nZCIsInRvb2wiOnsibmFtZSI6IkNvZGVRTCIsImd1aWQiOm51bGwsInZlcnNp\nb24iOiIyLjE2LjMifSwiZGVsZXRhYmxlIjpmYWxzZSwid2FybmluZyI6IiJ9\nXQ==\n" + } + }, + "recorded_at": "Fri, 31 May 2024 06:00:56 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_list_codeql_database_for_repo/lists_the_codeql_databases_that_are_available_in_a_repo.json b/spec/cassettes/Octokit_Client_CodeScanning/_list_codeql_database_for_repo/lists_the_codeql_databases_that_are_available_in_a_repo.json new file mode 100644 index 000000000..f3eb37480 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_list_codeql_database_for_repo/lists_the_codeql_databases_that_are_available_in_a_repo.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/codeql/databases", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 05:58:55 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"fb0108393e04f1308210f8de1dc9f9e0cf2e208abead03b465cb0826a8fe36ef\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "repo" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4973" + ], + "X-Ratelimit-Reset": [ + "1717135450" + ], + "X-Ratelimit-Used": [ + "27" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "DA24:1B0962:38D3169:393AB84:6659671F" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "W3siaWQiOjYzNjE2NTQ4LCJuYW1lIjoicHl0aG9uLWRhdGFiYXNlIiwibGFu\nZ3VhZ2UiOiJweXRob24iLCJ1cGxvYWRlciI6eyJsb2dpbiI6ImdpdGh1Yi1h\nY3Rpb25zW2JvdF0iLCJpZCI6NDE4OTgyODIsIm5vZGVfaWQiOiJNRE02UW05\nME5ERTRPVGd5T0RJPSIsImF2YXRhcl91cmwiOiJodHRwczovL2F2YXRhcnMu\nZ2l0aHVidXNlcmNvbnRlbnQuY29tL2luLzE1MzY4P3Y9NCIsImdyYXZhdGFy\nX2lkIjoiIiwidXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91c2Vycy9n\naXRodWItYWN0aW9ucyU1QmJvdCU1RCIsImh0bWxfdXJsIjoiaHR0cHM6Ly9n\naXRodWIuY29tL2FwcHMvZ2l0aHViLWFjdGlvbnMiLCJmb2xsb3dlcnNfdXJs\nIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91c2Vycy9naXRodWItYWN0aW9u\ncyU1QmJvdCU1RC9mb2xsb3dlcnMiLCJmb2xsb3dpbmdfdXJsIjoiaHR0cHM6\nLy9hcGkuZ2l0aHViLmNvbS91c2Vycy9naXRodWItYWN0aW9ucyU1QmJvdCU1\nRC9mb2xsb3dpbmd7L290aGVyX3VzZXJ9IiwiZ2lzdHNfdXJsIjoiaHR0cHM6\nLy9hcGkuZ2l0aHViLmNvbS91c2Vycy9naXRodWItYWN0aW9ucyU1QmJvdCU1\nRC9naXN0c3svZ2lzdF9pZH0iLCJzdGFycmVkX3VybCI6Imh0dHBzOi8vYXBp\nLmdpdGh1Yi5jb20vdXNlcnMvZ2l0aHViLWFjdGlvbnMlNUJib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} + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_list_instances_of_code_scanning_alert/lists_all_instances_of_the_specified_code_scanning_alert.json b/spec/cassettes/Octokit_Client_CodeScanning/_list_instances_of_code_scanning_alert/lists_all_instances_of_the_specified_code_scanning_alert.json new file mode 100644 index 000000000..5c9119da7 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_list_instances_of_code_scanning_alert/lists_all_instances_of_the_specified_code_scanning_alert.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "get", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/alerts/1/instances", + "body": { + "encoding": "US-ASCII", + "base64_string": "" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 06:26:39 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"7a33d2bc29be7f5689f859f4464362bdfe044502a042099cd11fed2e30b4ccc8\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4996" + ], + "X-Ratelimit-Reset": [ + "1717139061" + ], + "X-Ratelimit-Used": [ + "4" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "E15C:26444E:411190B:4186376:66596D9F" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "W3sicmVmIjoicmVmcy9oZWFkcy8wLjkiLCJhbmFseXNpc19rZXkiOiJkeW5h\nbWljL2dpdGh1Yi1jb2RlLXNjYW5uaW5nL2NvZGVxbDphbmFseXplIiwiZW52\naXJvbm1lbnQiOiJ7XCJsYW5ndWFnZVwiOlwicHl0aG9uXCJ9IiwiY2F0ZWdv\ncnkiOiIvbGFuZ3VhZ2U6cHl0aG9uIiwic3RhdGUiOiJvcGVuIiwiY29tbWl0\nX3NoYSI6ImRiODc0NDk2N2UxYzkxYTgwMDc5ZWNlZjcwYzdkYjgwNTg3MWRk\nM2QiLCJtZXNzYWdlIjp7InRleHQiOiJUaGlzIGV4cHJlc3Npb24gbG9ncyBz\nZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRleHQuXG5UaGlz\nIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFz\nIGNsZWFyIHRleHQuXG5UaGlzIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUg\nZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRleHQuXG5UaGlzIGV4cHJlc3Np\nb24gbG9ncyBzZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRl\neHQuXG5UaGlzIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUgZGF0YSAocGFz\nc3dvcmQpIGFzIGNsZWFyIHRleHQuXG5UaGlzIGV4cHJlc3Npb24gbG9ncyBz\nZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRleHQuXG5UaGlz\nIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUgZGF0YSAocGFzc3dvcmQpIGFz\nIGNsZWFyIHRleHQuXG5UaGlzIGV4cHJlc3Npb24gbG9ncyBzZW5zaXRpdmUg\nZGF0YSAocGFzc3dvcmQpIGFzIGNsZWFyIHRleHQuIn0sImxvY2F0aW9uIjp7\nInBhdGgiOiJvcmF0b3IvZGF0YWJhc2VfbWFuYWdlci5weSIsInN0YXJ0X2xp\nbmUiOjQxLCJlbmRfbGluZSI6NDEsInN0YXJ0X2NvbHVtbiI6MjYsImVuZF9j\nb2x1bW4iOjU5fSwiY2xhc3NpZmljYXRpb25zIjpbXX1d\n" + } + }, + "recorded_at": "Fri, 31 May 2024 06:26:39 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_update_code_scanning_alert/updates_a_status_of_a_single_code_scanning_alert.json b/spec/cassettes/Octokit_Client_CodeScanning/_update_code_scanning_alert/updates_a_status_of_a_single_code_scanning_alert.json new file mode 100644 index 000000000..41c964c53 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_update_code_scanning_alert/updates_a_status_of_a_single_code_scanning_alert.json @@ -0,0 +1,124 @@ +{ + "http_interactions": [ + { + "request": { + "method": "patch", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/alerts/1", + "body": { + "encoding": "UTF-8", + "base64_string": "eyJzdGF0ZSI6ImRpc21pc3NlZCIsImRpc21pc3NlZF9yZWFzb24iOiJ3b24n\ndCBmaXgiLCJkaXNtaXNzZWRfY29tbWVudCI6IlRlc3QgY29tbWVudCJ9\n" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 06:28:14 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Cache-Control": [ + "private, max-age=60, s-maxage=60" + ], + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "Etag": [ + "W/\"7a64f67a8d59361cae1e1c75521af057194fbae0442eea02ee9f498567762723\"" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4995" + ], + "X-Ratelimit-Reset": [ + "1717139061" + ], + "X-Ratelimit-Used": [ + "5" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "X-Github-Request-Id": [ + "E1BF:1C3A54:3967120:39D21D8:66596DFE" + ] + }, + "body": { + "encoding": "ASCII-8BIT", + "base64_string": "eyJudW1iZXIiOjEsImNyZWF0ZWRfYXQiOiIyMDI0LTAzLTAyVDIzOjUzOjU0\nWiIsInVwZGF0ZWRfYXQiOiIyMDI0LTA1LTMxVDA2OjI4OjE0WiIsInVybCI6\nImh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vcmVwb3MvQ2FqYS1kZS1EYW5vL2Fj\ndGl2ZS13cmFwcGVyL2NvZGUtc2Nhbm5pbmcvYWxlcnRzLzEiLCJodG1sX3Vy\nbCI6Imh0dHBzOi8vZ2l0aHViLmNvbS9DYWphLWRlLURhbm8vYWN0aXZlLXdy\nYXBwZXIvc2VjdXJpdHkvY29kZS1zY2FubmluZy8xIiwic3RhdGUiOiJkaXNt\naXNzZWQiLCJmaXhlZF9hdCI6bnVsbCwiZGlzbWlzc2VkX2J5Ijp7ImxvZ2lu\nIjoiPEdJVEhVQl9MT0dJTj4iLCJpZCI6MjU1NTA3Mywibm9kZV9pZCI6Ik1E\nUTZWWE5sY2pJMU5U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9jb2x1bW4iOjU5fSwiY2xhc3Np\nZmljYXRpb25zIjpbXX0sImluc3RhbmNlc191cmwiOiJodHRwczovL2FwaS5n\naXRodWIuY29tL3JlcG9zL0NhamEtZGUtRGFuby9hY3RpdmUtd3JhcHBlci9j\nb2RlLXNjYW5uaW5nL2FsZXJ0cy8xL2luc3RhbmNlcyJ9\n" + } + }, + "recorded_at": "Fri, 31 May 2024 06:28:14 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/cassettes/Octokit_Client_CodeScanning/_update_code_scanning_default_config/updates_the_default_code_scanning_configuration_for_a_repository.json b/spec/cassettes/Octokit_Client_CodeScanning/_update_code_scanning_default_config/updates_the_default_code_scanning_configuration_for_a_repository.json new file mode 100644 index 000000000..4e7904b65 --- /dev/null +++ b/spec/cassettes/Octokit_Client_CodeScanning/_update_code_scanning_default_config/updates_the_default_code_scanning_configuration_for_a_repository.json @@ -0,0 +1,117 @@ +{ + "http_interactions": [ + { + "request": { + "method": "patch", + "uri": "https://api.github.com/repos/Caja-de-Dano/active-wrapper/code-scanning/default-setup", + "body": { + "encoding": "UTF-8", + "base64_string": "eyJzdGF0ZSI6ImNvbmZpZ3VyZWQifQ==\n" + }, + "headers": { + "Accept": [ + "application/vnd.github.v3+json" + ], + "User-Agent": [ + "Octokit Ruby Gem 8.1.0" + ], + "Content-Type": [ + "application/json" + ], + "Authorization": [ + "token <>" + ], + "Accept-Encoding": [ + "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + ] + } + }, + "response": { + "status": { + "code": 202, + "message": "Accepted" + }, + "headers": { + "Server": [ + "GitHub.com" + ], + "Date": [ + "Fri, 31 May 2024 05:51:36 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "114" + ], + "X-Oauth-Scopes": [ + "gist, read:org, repo, workflow" + ], + "X-Accepted-Oauth-Scopes": [ + "admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook" + ], + "X-Oauth-Client-Id": [ + "178c6fc778ccc68e1d6a" + ], + "X-Github-Media-Type": [ + "github.v3; format=json" + ], + "X-Github-Api-Version-Selected": [ + "2022-11-28" + ], + "X-Ratelimit-Limit": [ + "5000" + ], + "X-Ratelimit-Remaining": [ + "4976" + ], + "X-Ratelimit-Reset": [ + "1717135450" + ], + "X-Ratelimit-Used": [ + "24" + ], + "X-Ratelimit-Resource": [ + "core" + ], + "Access-Control-Expose-Headers": [ + "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "X-Frame-Options": [ + "deny" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Xss-Protection": [ + "0" + ], + "Referrer-Policy": [ + "origin-when-cross-origin, strict-origin-when-cross-origin" + ], + "Content-Security-Policy": [ + "default-src 'none'" + ], + "Vary": [ + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-Github-Request-Id": [ + "D824:1C3A54:3748F72:37AFCB2:66596567" + ] + }, + "body": { + "encoding": "UTF-8", + "base64_string": "eyJydW5faWQiOjkzMTM1NjI1MjIsInJ1bl91cmwiOiJodHRwczovL2FwaS5n\naXRodWIuY29tL3JlcG9zL0NhamEtZGUtRGFuby9hY3RpdmUtd3JhcHBlci9h\nY3Rpb25zL3J1bnMvOTMxMzU2MjUyMiJ9\n" + } + }, + "recorded_at": "Fri, 31 May 2024 05:51:36 GMT" + } + ], + "recorded_with": "VCR 6.2.0" +} \ No newline at end of file diff --git a/spec/octokit/client/code_scanning_spec.rb b/spec/octokit/client/code_scanning_spec.rb index 5bc1ac0a2..6192aef68 100644 --- a/spec/octokit/client/code_scanning_spec.rb +++ b/spec/octokit/client/code_scanning_spec.rb @@ -4,6 +4,110 @@ before do @client = oauth_client @sarif_id = 'fb31fa2c-095d-11ee-98fe-c609abca1772' + @code_scanning_test_repo = 'Caja-de-Dano/active-wrapper' + end + + describe '.list_code_scanning_alerts_for_org', :vcr do + it 'lists code scanning alerts for an organization' do + scanning_alerts = @client.list_code_scanning_alerts_for_org('caja-de-dano') + expect(scanning_alerts).to be_kind_of Array + expect(scanning_alerts.first.state).to eq('open') + assert_requested :get, github_url('/orgs/caja-de-dano/code-scanning/alerts') + end + end + + describe '.list_code_scanning_alerts_for_repository', :vcr do + it 'lists code scanning alerts for a repository' do + scanning_alerts = @client.list_code_scanning_alerts_for_repo(@code_scanning_test_repo) + expect(scanning_alerts).to be_kind_of Array + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/alerts") + end + end + + describe '.get_code_scanning_alert', :vcr do + it 'gets a code scanning alert by alert number' do + alert = @client.get_code_scanning_alert(@code_scanning_test_repo, 1) + expect(alert.rule.id).to eq('py/clear-text-logging-sensitive-data') + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/alerts/1") + end + end + + describe '.update_code_scanning_alert', :vcr do + it 'updates a status of a single code scanning alert' do + alert = @client.update_code_scanning_alert(@code_scanning_test_repo, 1, 'dismissed', "won't fix", 'Test comment') + expect(alert.state).to eq('dismissed') + assert_requested :patch, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/alerts/1") + end + end + + describe '.list_instances_of_code_scanning_alert', :vcr do + it 'lists all instances of the specified code scanning alert' do + instances = @client.list_instances_of_code_scanning_alert(@code_scanning_test_repo, 1) + expect(instances).to be_kind_of Array + expect(instances.first.state).to eq('open') + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/alerts/1/instances") + end + end + + describe '.list_code_scanning_analysis', :vcr do + it 'lists code scanning analyses for a repository' do + analyses = @client.list_code_scanning_analysis(@code_scanning_test_repo) + expect(analyses).to be_kind_of Array + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/analyses") + end + end + + describe '.get_code_scanning_analysis', :vcr do + it 'gets a specific code scanning analysis for a repo' do + analysis = @client.get_code_scanning_analysis(@code_scanning_test_repo, 225_379_147) + expect(analysis.tool.name).to eq('CodeQL') + expect(analysis.id).to eq(225_379_147) + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/analyses/225379147") + end + end + + describe '.delete_code_scanning_analysis', :vcr do + it 'deletes a code scanning analysis' do + analysis = @client.delete_code_scanning_analysis(@code_scanning_test_repo, 225_379_147) + expect(analysis.confirm_delete_url).to eq("#{analysis.next_analysis_url}?confirm_delete") + assert_requested :delete, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/analyses/225379147") + end + end + + describe '.list_codeql_database_for_repo', :vcr do + it 'lists the codeql databases that are available in a repo' do + databases = @client.list_codeql_database_for_repo(@code_scanning_test_repo) + expect(databases).to be_kind_of Array + expect(databases.first.language).to eq('python') + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/codeql/databases") + end + end + + describe '.get_codeql_database_for_repo', :vcr do + it 'gets a CodeQL database for a language in a repository' do + database = @client.get_codeql_database_for_repo(@code_scanning_test_repo, 'python') + expect(database.language).to eq('python') + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/codeql/databases/python") + end + end + + describe '.get_code_scanning_default_config', :vcr do + it 'gets the default code scanning configuration for a repository' do + default_config = @client.get_code_scanning_default_config(@code_scanning_test_repo) + expect(default_config.state).to eq('configured') + expect(default_config.query_suite).to eq('default') + expect(default_config.languages).to eq(['python']) + assert_requested :get, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/default-setup") + end + end + + describe '.update_code_scanning_default_config', :vcr do + it 'updates the default code scanning configuration for a repository' do + default_config = @client.update_code_scanning_default_config(@code_scanning_test_repo, 'configured') + expect(default_config.run_id).to be_kind_of Integer + expect(default_config.run_url).to eq("https://api.github.com/repos/#{@code_scanning_test_repo}/actions/runs/#{default_config.run_id}") + assert_requested :patch, github_url("/repos/#{@code_scanning_test_repo}/code-scanning/default-setup") + end end describe '.upload_sarif_data', :vcr do