Skip to content
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

Sync SecurityAndAnalysis class with API spec #3158

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test data
  • Loading branch information
EnricoMi committed Jan 9, 2025
commit 33ebd4e51a5a7ddfd594a28688495ee1f56dad59
6 changes: 3 additions & 3 deletions tests/ReplayData/SecurityAndAnalysis.setUp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ https
GET
api.github.com
None
/repos/transmission-web-control/transmission-web-control
/repos/PyGithub/PyGithub
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Jun 2023 09:00:25 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/"60d4519044dda2b5c9593f4aa02b569a78ec686f39aa039dd00455707d723d9f"'), ('Last-Modified', 'Thu, 01 Jun 2023 07:39:48 GMT'), ('X-OAuth-Scopes', 'delete:packages, gist, read:discussion, read:org, repo, workflow, write:packages'), ('X-Accepted-OAuth-Scopes', 'repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4680'), ('X-RateLimit-Reset', '1685613199'), ('X-RateLimit-Used', '320'), ('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'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'EB88:1556:436041:46EAA0:64785E28')]
{"id":631628708,"node_id":"R_kgDOJaXjpA","name":"transmission-web-control","full_name":"transmission-web-control/transmission-web-control","private":false,"owner":{"login":"transmission-web-control","id":131607464,"node_id":"O_kgDOB9grqA","avatar_url":"https://avatars.githubusercontent.com/u/131607464?v=4","gravatar_id":"","url":"https://api.github.com/users/transmission-web-control","html_url":"https://github.com/transmission-web-control","followers_url":"https://api.github.com/users/transmission-web-control/followers","following_url":"https://api.github.com/users/transmission-web-control/following{/other_user}","gists_url":"https://api.github.com/users/transmission-web-control/gists{/gist_id}","starred_url":"https://api.github.com/users/transmission-web-control/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transmission-web-control/subscriptions","organizations_url":"https://api.github.com/users/transmission-web-control/orgs","repos_url":"https://api.github.com/users/transmission-web-control/repos","events_url":"https://api.github.com/users/transmission-web-control/events{/privacy}","received_events_url":"https://api.github.com/users/transmission-web-control/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/transmission-web-control/transmission-web-control","description":"maintained fork of ronggang/transmission-web-control","fork":false,"url":"https://api.github.com/repos/transmission-web-control/transmission-web-control","forks_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/forks","keys_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/teams","hooks_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/hooks","issue_events_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/issues/events{/number}","events_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/events","assignees_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/assignees{/user}","branches_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/branches{/branch}","tags_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/tags","blobs_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/git/refs{/sha}","trees_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/statuses/{sha}","languages_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/languages","stargazers_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/stargazers","contributors_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/contributors","subscribers_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/subscribers","subscription_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/subscription","commits_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/commits{/sha}","git_commits_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/git/commits{/sha}","comments_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/comments{/number}","issue_comment_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/issues/comments{/number}","contents_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/contents/{+path}","compare_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/merges","archive_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/downloads","issues_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/issues{/number}","pulls_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/pulls{/number}","milestones_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/milestones{/number}","notifications_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/labels{/name}","releases_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/releases{/id}","deployments_url":"https://api.github.com/repos/transmission-web-control/transmission-web-control/deployments","created_at":"2023-04-23T16:14:17Z","updated_at":"2023-06-01T07:39:48Z","pushed_at":"2023-05-31T22:12:53Z","git_url":"git://github.com/transmission-web-control/transmission-web-control.git","ssh_url":"[email protected]:transmission-web-control/transmission-web-control.git","clone_url":"https://github.com/transmission-web-control/transmission-web-control.git","svn_url":"https://github.com/transmission-web-control/transmission-web-control","homepage":"","size":28072,"stargazers_count":79,"watchers_count":79,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"has_discussions":false,"forks_count":6,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["transmission","transmission-web-control"],"visibility":"public","forks":6,"open_issues":9,"watchers":79,"default_branch":"master","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_auto_merge":false,"delete_branch_on_merge":true,"allow_update_branch":true,"use_squash_pr_title_as_default":true,"squash_merge_commit_message":"BLANK","squash_merge_commit_title":"PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","organization":{"login":"transmission-web-control","id":131607464,"node_id":"O_kgDOB9grqA","avatar_url":"https://avatars.githubusercontent.com/u/131607464?v=4","gravatar_id":"","url":"https://api.github.com/users/transmission-web-control","html_url":"https://github.com/transmission-web-control","followers_url":"https://api.github.com/users/transmission-web-control/followers","following_url":"https://api.github.com/users/transmission-web-control/following{/other_user}","gists_url":"https://api.github.com/users/transmission-web-control/gists{/gist_id}","starred_url":"https://api.github.com/users/transmission-web-control/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transmission-web-control/subscriptions","organizations_url":"https://api.github.com/users/transmission-web-control/orgs","repos_url":"https://api.github.com/users/transmission-web-control/repos","events_url":"https://api.github.com/users/transmission-web-control/events{/privacy}","received_events_url":"https://api.github.com/users/transmission-web-control/received_events","type":"Organization","site_admin":false},"security_and_analysis": {"advanced_security": {"status": "disabled"}, "secret_scanning": {"status": "disabled"}, "secret_scanning_push_protection": {"status": "disabled"}, "dependabot_security_updates": {"status": "disabled"}, "secret_scanning_non_provider_patterns": {"status": "disabled"}, "secret_scanning_validity_checks": {"status": "disabled"}},"network_count":6,"subscribers_count":3}
[('Date', 'Tue, 07 Jan 2025 08:54:00 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"37ea58577585c38f93634ef43114c657de2581286eb6976ec18c274de296eff0"'), ('Last-Modified', 'Mon, 06 Jan 2025 21:35:40 GMT'), ('X-OAuth-Scopes', 'read:discussion, repo'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2025-02-04 16:42:10 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4998'), ('X-RateLimit-Reset', '1736243610'), ('X-RateLimit-Used', '2'), ('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'"), ('Content-Encoding', 'gzip'), ('Transfer-Encoding', 'chunked'), ('Server', 'github.com'), ('X-GitHub-Request-Id', 'E7D6:3EE039:1381942:1418241:677CEBA8')]
{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","user_view_type":"public","site_admin":false},"html_url":"https://github.com/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://api.github.com/repos/PyGithub/PyGithub","forks_url":"https://api.github.com/repos/PyGithub/PyGithub/forks","keys_url":"https://api.github.com/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyGithub/PyGithub/teams","hooks_url":"https://api.github.com/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/PyGithub/PyGithub/events","assignees_url":"https://api.github.com/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/PyGithub/PyGithub/tags","blobs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/PyGithub/PyGithub/languages","stargazers_url":"https://api.github.com/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/PyGithub/PyGithub/subscription","commits_url":"https://api.github.com/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyGithub/PyGithub/merges","archive_url":"https://api.github.com/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyGithub/PyGithub/downloads","issues_url":"https://api.github.com/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2025-01-06T21:35:40Z","pushed_at":"2024-12-19T12:01:11Z","git_url":"git://github.com/PyGithub/PyGithub.git","ssh_url":"[email protected]:PyGithub/PyGithub.git","clone_url":"https://github.com/PyGithub/PyGithub.git","svn_url":"https://github.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":16425,"stargazers_count":7122,"watchers_count":7122,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1793,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":357,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["github","github-api","pygithub","python"],"visibility":"public","forks":1793,"open_issues":357,"watchers":7122,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_auto_merge":false,"delete_branch_on_merge":true,"allow_update_branch":true,"use_squash_pr_title_as_default":true,"squash_merge_commit_message":"PR_BODY","squash_merge_commit_title":"PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","user_view_type":"public","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"enabled"},"secret_scanning_non_provider_patterns":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":1793,"subscribers_count":111}