Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

PyGithub

Package Overview
Dependencies
Maintainers
3
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

PyGithub - npm Package Compare versions

Comparing version
2.2.0
to
2.3.0
+10
tests/ReplayData/A...nOAuth.testEnterpriseGetAccessToken.txt
http
POST
my.enterprise.com
None
/login/oauth/access_token
{'Content-Type': 'application/json', 'Accept': 'application/json', 'User-Agent': 'PyGithub/Python'}
{"client_secret": "client_secret_removed", "code": "oauth_code_removed", "client_id": "client_id_removed", "state": "state_removed"}
200
[('Date', 'Fri, 25 Jan 2019 11:06:39 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Vary', 'X-PJAX, Accept-Encoding'), ('ETag', 'W/"deebfe47f0039427b39ec010749014f6"'), ('Cache-Control', 'max-age=0, private, must-revalidate'), ('Set-Cookie', 'has_recent_activity=1; path=/; expires=Fri, 25 Jan 2019 12:06:38 -0000, ignored_unsupported_browser_notice=false; path=/'), ('X-Request-Id', 'ed8794eb-dc95-481f-8e52-2cd5db0494a0'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Expect-CT', 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"'), ('Content-Security-Policy', "default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: github.githubassets.com assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'C8AC:1D8B2:126D746:1BF8DE4:5C4AEDBE')]
{"access_token":"access_token_removed","token_type":"bearer","scope":""}
https
GET
api.github.com
None
/orgs/demoorg
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:38:37 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/"fdd3ad04d14a1c6deb0a4a1fbcc104a59889084ffa9e75d80a66f6b7a54ec074"'), ('Last-Modified', 'Wed, 17 Jan 2024 22:24:36 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org, read:org, repo, user, write:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 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', '1706834317'), ('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'), ('X-GitHub-Request-Id', 'EDD0:6F665:EB314B6:ED7870E:65BC2B7D')]
{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","url":"https://api.github.com/orgs/demoorg","repos_url":"https://api.github.com/orgs/demoorg/repos","events_url":"https://api.github.com/orgs/demoorg/events","hooks_url":"https://api.github.com/orgs/demoorg/hooks","issues_url":"https://api.github.com/orgs/demoorg/issues","members_url":"https://api.github.com/orgs/demoorg/members{/member}","public_members_url":"https://api.github.com/orgs/demoorg/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","description":null,"is_verified":false,"has_organization_projects":true,"has_repository_projects":true,"public_repos":3,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/demoorg","created_at":"2024-01-17T20:14:26Z","updated_at":"2024-01-17T22:24:36Z","archived_at":null,"type":"Organization","total_private_repos":0,"owned_private_repos":0,"private_gists":0,"disk_usage":5,"collaborators":0,"billing_email":"me@example.com","default_repository_permission":"read","members_can_create_repositories":true,"two_factor_requirement_enabled":true,"members_allowed_repository_creation_type":"all","members_can_create_public_repositories":true,"members_can_create_private_repositories":true,"members_can_create_internal_repositories":false,"members_can_create_pages":true,"members_can_fork_private_repositories":false,"web_commit_signoff_required":false,"members_can_create_public_pages":true,"members_can_create_private_pages":true,"plan":{"name":"free","space":976562499,"private_repos":10000,"filled_seats":2,"seats":0},"advanced_security_enabled_for_new_repositories":false,"dependabot_alerts_enabled_for_new_repositories":false,"dependabot_security_updates_enabled_for_new_repositories":false,"dependency_graph_enabled_for_new_repositories":false,"secret_scanning_enabled_for_new_repositories":false,"secret_scanning_push_protection_enabled_for_new_repositories":false,"secret_scanning_push_protection_custom_link_enabled":false,"secret_scanning_push_protection_custom_link":null,"secret_scanning_validity_checks_enabled":false}
https
GET
api.github.com
None
/orgs/demoorg/actions/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:38:37 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/"326d11de4f24fa979dbeeaee53a8d66cd9957752fc68342c1f9b9095f9f7c03b"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4997'), ('X-RateLimit-Reset', '1706834317'), ('X-RateLimit-Used', '3'), ('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', 'EDD1:53734:E02874D:E26F579:65BC2B7D')]
{"key_id":"3380204578043523366","key":"lEcXo0mlVf630hnPSTSCuXmGo2CxuIAKT7RRvZ1QjB4="}
https
PUT
api.github.com
None
/orgs/demoorg/actions/secrets/secret_name
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"key_id": "3380204578043523366", "encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b", "visibility": "all"}
201
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:38:38 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"ef7d1a03b3332b83aecd008a006821ad3613d37a6ec742a794010bc2d93610cf"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('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', '1706834317'), ('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', 'EDD2:39C98A:1E5CAD8:1EAD780:65BC2B7E')]
{}
https
GET
api.github.com
None
/orgs/demoorg
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:44 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/"fdd3ad04d14a1c6deb0a4a1fbcc104a59889084ffa9e75d80a66f6b7a54ec074"'), ('Last-Modified', 'Wed, 17 Jan 2024 22:24:36 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org, read:org, repo, user, write:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4931'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '69'), ('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', 'ED05:2C9777:E41C658:E65E1E5:65BC23C8')]
{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","url":"https://api.github.com/orgs/demoorg","repos_url":"https://api.github.com/orgs/demoorg/repos","events_url":"https://api.github.com/orgs/demoorg/events","hooks_url":"https://api.github.com/orgs/demoorg/hooks","issues_url":"https://api.github.com/orgs/demoorg/issues","members_url":"https://api.github.com/orgs/demoorg/members{/member}","public_members_url":"https://api.github.com/orgs/demoorg/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","description":null,"is_verified":false,"has_organization_projects":true,"has_repository_projects":true,"public_repos":3,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/demoorg","created_at":"2024-01-17T20:14:26Z","updated_at":"2024-01-17T22:24:36Z","archived_at":null,"type":"Organization","total_private_repos":0,"owned_private_repos":0,"private_gists":0,"disk_usage":5,"collaborators":0,"billing_email":"me@example.com","default_repository_permission":"read","members_can_create_repositories":true,"two_factor_requirement_enabled":true,"members_allowed_repository_creation_type":"all","members_can_create_public_repositories":true,"members_can_create_private_repositories":true,"members_can_create_internal_repositories":false,"members_can_create_pages":true,"members_can_fork_private_repositories":false,"web_commit_signoff_required":false,"members_can_create_public_pages":true,"members_can_create_private_pages":true,"plan":{"name":"free","space":976562499,"private_repos":10000,"filled_seats":2,"seats":0},"advanced_security_enabled_for_new_repositories":false,"dependabot_alerts_enabled_for_new_repositories":false,"dependabot_security_updates_enabled_for_new_repositories":false,"dependency_graph_enabled_for_new_repositories":false,"secret_scanning_enabled_for_new_repositories":false,"secret_scanning_push_protection_enabled_for_new_repositories":false,"secret_scanning_push_protection_custom_link_enabled":false,"secret_scanning_push_protection_custom_link":null,"secret_scanning_validity_checks_enabled":false}
https
GET
api.github.com
None
/orgs/demoorg/dependabot/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:44 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/"4f57ae8fba32f7b438a3b02f56bb750c7bac58f35ae00ae9e366f5a8974888b9"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4930'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '70'), ('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', 'ED06:18EF96:DEDD9D3:E11F4DA:65BC23C8')]
{"key_id":"3380217566468950943","key":"HYk6AFuoV0iI+t+geHowOxji1OKAGW6GtngRFeETM14="}
https
PUT
api.github.com
None
/orgs/demoorg/dependabot/secrets/secret_name
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"key_id": "3380217566468950943", "encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b", "visibility": "all"}
201
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:45 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"ef7d1a03b3332b83aecd008a006821ad3613d37a6ec742a794010bc2d93610cf"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4929'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '71'), ('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', 'ED07:7E6D9:E68F7CC:E8D1392:65BC23C8')]
{}
https
GET
api.github.com
None
/orgs/demoorg
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:45 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/"fdd3ad04d14a1c6deb0a4a1fbcc104a59889084ffa9e75d80a66f6b7a54ec074"'), ('Last-Modified', 'Wed, 17 Jan 2024 22:24:36 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org, read:org, repo, user, write:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4927'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '73'), ('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', 'ED09:5E18E:E497844:E6D91FF:65BC23C9')]
{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","url":"https://api.github.com/orgs/demoorg","repos_url":"https://api.github.com/orgs/demoorg/repos","events_url":"https://api.github.com/orgs/demoorg/events","hooks_url":"https://api.github.com/orgs/demoorg/hooks","issues_url":"https://api.github.com/orgs/demoorg/issues","members_url":"https://api.github.com/orgs/demoorg/members{/member}","public_members_url":"https://api.github.com/orgs/demoorg/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","description":null,"is_verified":false,"has_organization_projects":true,"has_repository_projects":true,"public_repos":3,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/demoorg","created_at":"2024-01-17T20:14:26Z","updated_at":"2024-01-17T22:24:36Z","archived_at":null,"type":"Organization","total_private_repos":0,"owned_private_repos":0,"private_gists":0,"disk_usage":5,"collaborators":0,"billing_email":"me@example.com","default_repository_permission":"read","members_can_create_repositories":true,"two_factor_requirement_enabled":true,"members_allowed_repository_creation_type":"all","members_can_create_public_repositories":true,"members_can_create_private_repositories":true,"members_can_create_internal_repositories":false,"members_can_create_pages":true,"members_can_fork_private_repositories":false,"web_commit_signoff_required":false,"members_can_create_public_pages":true,"members_can_create_private_pages":true,"plan":{"name":"free","space":976562499,"private_repos":10000,"filled_seats":2,"seats":0},"advanced_security_enabled_for_new_repositories":false,"dependabot_alerts_enabled_for_new_repositories":false,"dependabot_security_updates_enabled_for_new_repositories":false,"dependency_graph_enabled_for_new_repositories":false,"secret_scanning_enabled_for_new_repositories":false,"secret_scanning_push_protection_enabled_for_new_repositories":false,"secret_scanning_push_protection_custom_link_enabled":false,"secret_scanning_push_protection_custom_link":null,"secret_scanning_validity_checks_enabled":false}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-1
{'Accept': 'application/vnd.github.nebula-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:46 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/"7d6947bb6dc9709c7b930fe8f18991f5210224d5319fa50eb248979e9acf0627"'), ('Last-Modified', 'Wed, 17 Jan 2024 20:16:00 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; param=nebula-preview; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4926'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '74'), ('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', 'ED0A:D6070:7130FF9:7257CAB:65BC23C9')]
{"id":744692002,"node_id":"R_kgDOLGMZIg","name":"demo-repo-1","full_name":"demoorg/demo-repo-1","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-1","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-1","forks_url":"https://api.github.com/repos/demoorg/demo-repo-1/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-1/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-1/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-1/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-1/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-1/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-1/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-1/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-1/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-1/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-1/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-1/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-1/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-1/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-1/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-1/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-1/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-1/deployments","created_at":"2024-01-17T20:15:59Z","updated_at":"2024-01-17T20:16:00Z","pushed_at":"2024-01-17T20:16:00Z","git_url":"git://github.com/demoorg/demo-repo-1.git","ssh_url":"git@github.com:demoorg/demo-repo-1.git","clone_url":"https://github.com/demoorg/demo-repo-1.git","svn_url":"https://github.com/demoorg/demo-repo-1","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":0,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":false,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":0,"subscribers_count":0}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-2
{'Accept': 'application/vnd.github.nebula-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:46 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/"692b43682cf160985c81fe3af42dc9e2cf18886063e3d33e74568865389a3a33"'), ('Last-Modified', 'Thu, 01 Feb 2024 18:15:57 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; param=nebula-preview; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4925'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '75'), ('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', 'ED0B:3D0E38:2904481:296D1C5:65BC23CA')]
{"id":751491527,"node_id":"R_kgDOLMrZxw","name":"demo-repo-2","full_name":"demoorg/demo-repo-2","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-2","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-2","forks_url":"https://api.github.com/repos/demoorg/demo-repo-2/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-2/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-2/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-2/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-2/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-2/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-2/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-2/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-2/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-2/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-2/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-2/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-2/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-2/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-2/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-2/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-2/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-2/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-2/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-2/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-2/deployments","created_at":"2024-02-01T18:02:27Z","updated_at":"2024-02-01T18:15:57Z","pushed_at":"2024-02-01T18:02:28Z","git_url":"git://github.com/demoorg/demo-repo-2.git","ssh_url":"git@github.com:demoorg/demo-repo-2.git","clone_url":"https://github.com/demoorg/demo-repo-2.git","svn_url":"https://github.com/demoorg/demo-repo-2","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":0,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":false,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":0,"subscribers_count":0}
https
GET
api.github.com
None
/orgs/demoorg/dependabot/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:47 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/"4f57ae8fba32f7b438a3b02f56bb750c7bac58f35ae00ae9e366f5a8974888b9"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4924'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '76'), ('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', 'ED0C:18EF96:DEDE0F4:E11FC25:65BC23CA')]
{"key_id":"3380217566468950943","key":"HYk6AFuoV0iI+t+geHowOxji1OKAGW6GtngRFeETM14="}
https
PUT
api.github.com
None
/orgs/demoorg/dependabot/secrets/SECRET_DEP_NAME
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"key_id": "3380217566468950943", "encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b", "visibility": "selected", "selected_repository_ids": ["744692002", "751491527"]}
204
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:47 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4923'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '77'), ('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', 'ED0D:3B4C54:45EB070:469E8E3:65BC23CB')]
https
GET
api.github.com
None
/orgs/demoorg/dependabot/secrets/SECRET_DEP_NAME/repositories
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:05:47 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/"fb1e023094152db42e0a786bd0caca69105ead37efff1ca109beb50b277b6988"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4922'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '78'), ('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', 'ED0E:19A112:DAF348F:DD351D1:65BC23CB')]
{"total_count":2,"repositories":[{"id":744692002,"node_id":"R_kgDOLGMZIg","name":"demo-repo-1","full_name":"demoorg/demo-repo-1","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-1","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-1","forks_url":"https://api.github.com/repos/demoorg/demo-repo-1/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-1/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-1/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-1/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-1/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-1/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-1/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-1/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-1/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-1/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-1/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-1/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-1/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-1/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-1/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-1/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-1/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-1/deployments"},{"id":751491527,"node_id":"R_kgDOLMrZxw","name":"demo-repo-2","full_name":"demoorg/demo-repo-2","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-2","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-2","forks_url":"https://api.github.com/repos/demoorg/demo-repo-2/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-2/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-2/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-2/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-2/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-2/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-2/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-2/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-2/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-2/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-2/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-2/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-2/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-2/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-2/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-2/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-2/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-2/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-2/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-2/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-2/deployments"}]}
https
GET
api.github.com
None
/orgs/demoorg
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:38: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/"fdd3ad04d14a1c6deb0a4a1fbcc104a59889084ffa9e75d80a66f6b7a54ec074"'), ('Last-Modified', 'Wed, 17 Jan 2024 22:24:36 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org, read:org, repo, user, write:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('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', '1706834317'), ('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'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'EDD5:2508B2:9AE6C80:9C7B574:65BC2B8F')]
{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","url":"https://api.github.com/orgs/demoorg","repos_url":"https://api.github.com/orgs/demoorg/repos","events_url":"https://api.github.com/orgs/demoorg/events","hooks_url":"https://api.github.com/orgs/demoorg/hooks","issues_url":"https://api.github.com/orgs/demoorg/issues","members_url":"https://api.github.com/orgs/demoorg/members{/member}","public_members_url":"https://api.github.com/orgs/demoorg/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","description":null,"is_verified":false,"has_organization_projects":true,"has_repository_projects":true,"public_repos":3,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/demoorg","created_at":"2024-01-17T20:14:26Z","updated_at":"2024-01-17T22:24:36Z","archived_at":null,"type":"Organization","total_private_repos":0,"owned_private_repos":0,"private_gists":0,"disk_usage":5,"collaborators":0,"billing_email":"me@example.com","default_repository_permission":"read","members_can_create_repositories":true,"two_factor_requirement_enabled":true,"members_allowed_repository_creation_type":"all","members_can_create_public_repositories":true,"members_can_create_private_repositories":true,"members_can_create_internal_repositories":false,"members_can_create_pages":true,"members_can_fork_private_repositories":false,"web_commit_signoff_required":false,"members_can_create_public_pages":true,"members_can_create_private_pages":true,"plan":{"name":"free","space":976562499,"private_repos":10000,"filled_seats":2,"seats":0},"advanced_security_enabled_for_new_repositories":false,"dependabot_alerts_enabled_for_new_repositories":false,"dependabot_security_updates_enabled_for_new_repositories":false,"dependency_graph_enabled_for_new_repositories":false,"secret_scanning_enabled_for_new_repositories":false,"secret_scanning_push_protection_enabled_for_new_repositories":false,"secret_scanning_push_protection_custom_link_enabled":false,"secret_scanning_push_protection_custom_link":null,"secret_scanning_validity_checks_enabled":false}
https
GET
api.github.com
None
/orgs/demoorg
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:06: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/"fdd3ad04d14a1c6deb0a4a1fbcc104a59889084ffa9e75d80a66f6b7a54ec074"'), ('Last-Modified', 'Wed, 17 Jan 2024 22:24:36 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org, read:org, repo, user, write:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4920'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '80'), ('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', 'ED12:D6070:71412E7:7268274:65BC240F')]
{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","url":"https://api.github.com/orgs/demoorg","repos_url":"https://api.github.com/orgs/demoorg/repos","events_url":"https://api.github.com/orgs/demoorg/events","hooks_url":"https://api.github.com/orgs/demoorg/hooks","issues_url":"https://api.github.com/orgs/demoorg/issues","members_url":"https://api.github.com/orgs/demoorg/members{/member}","public_members_url":"https://api.github.com/orgs/demoorg/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","description":null,"is_verified":false,"has_organization_projects":true,"has_repository_projects":true,"public_repos":3,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/demoorg","created_at":"2024-01-17T20:14:26Z","updated_at":"2024-01-17T22:24:36Z","archived_at":null,"type":"Organization","total_private_repos":0,"owned_private_repos":0,"private_gists":0,"disk_usage":5,"collaborators":0,"billing_email":"me@example.com","default_repository_permission":"read","members_can_create_repositories":true,"two_factor_requirement_enabled":true,"members_allowed_repository_creation_type":"all","members_can_create_public_repositories":true,"members_can_create_private_repositories":true,"members_can_create_internal_repositories":false,"members_can_create_pages":true,"members_can_fork_private_repositories":false,"web_commit_signoff_required":false,"members_can_create_public_pages":true,"members_can_create_private_pages":true,"plan":{"name":"free","space":976562499,"private_repos":10000,"filled_seats":2,"seats":0},"advanced_security_enabled_for_new_repositories":false,"dependabot_alerts_enabled_for_new_repositories":false,"dependabot_security_updates_enabled_for_new_repositories":false,"dependency_graph_enabled_for_new_repositories":false,"secret_scanning_enabled_for_new_repositories":false,"secret_scanning_push_protection_enabled_for_new_repositories":false,"secret_scanning_push_protection_custom_link_enabled":false,"secret_scanning_push_protection_custom_link":null,"secret_scanning_validity_checks_enabled":false}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-1
{'Accept': 'application/vnd.github.nebula-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:06: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/"7d6947bb6dc9709c7b930fe8f18991f5210224d5319fa50eb248979e9acf0627"'), ('Last-Modified', 'Wed, 17 Jan 2024 20:16:00 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; param=nebula-preview; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4919'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '81'), ('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', 'ED13:18EF96:DEECAAF:E12E89F:65BC2410')]
{"id":744692002,"node_id":"R_kgDOLGMZIg","name":"demo-repo-1","full_name":"demoorg/demo-repo-1","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-1","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-1","forks_url":"https://api.github.com/repos/demoorg/demo-repo-1/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-1/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-1/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-1/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-1/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-1/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-1/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-1/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-1/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-1/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-1/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-1/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-1/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-1/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-1/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-1/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-1/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-1/deployments","created_at":"2024-01-17T20:15:59Z","updated_at":"2024-01-17T20:16:00Z","pushed_at":"2024-01-17T20:16:00Z","git_url":"git://github.com/demoorg/demo-repo-1.git","ssh_url":"git@github.com:demoorg/demo-repo-1.git","clone_url":"https://github.com/demoorg/demo-repo-1.git","svn_url":"https://github.com/demoorg/demo-repo-1","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":0,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":false,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":0,"subscribers_count":0}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-2
{'Accept': 'application/vnd.github.nebula-preview+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:06: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/"692b43682cf160985c81fe3af42dc9e2cf18886063e3d33e74568865389a3a33"'), ('Last-Modified', 'Thu, 01 Feb 2024 18:15:57 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; param=nebula-preview; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4918'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '82'), ('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', 'ED14:157E91:E3590BF:E5965E7:65BC2410')]
{"id":751491527,"node_id":"R_kgDOLMrZxw","name":"demo-repo-2","full_name":"demoorg/demo-repo-2","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-2","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-2","forks_url":"https://api.github.com/repos/demoorg/demo-repo-2/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-2/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-2/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-2/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-2/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-2/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-2/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-2/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-2/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-2/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-2/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-2/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-2/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-2/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-2/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-2/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-2/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-2/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-2/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-2/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-2/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-2/deployments","created_at":"2024-02-01T18:02:27Z","updated_at":"2024-02-01T18:15:57Z","pushed_at":"2024-02-01T18:02:28Z","git_url":"git://github.com/demoorg/demo-repo-2.git","ssh_url":"git@github.com:demoorg/demo-repo-2.git","clone_url":"https://github.com/demoorg/demo-repo-2.git","svn_url":"https://github.com/demoorg/demo-repo-2","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":0,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":false,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":0,"subscribers_count":0}
https
GET
api.github.com
None
/orgs/demoorg/actions/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:06: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/"326d11de4f24fa979dbeeaee53a8d66cd9957752fc68342c1f9b9095f9f7c03b"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4917'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '83'), ('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', 'ED15:45DB9:DF3E31D:E17BD1A:65BC2410')]
{"key_id":"3380204578043523366","key":"lEcXo0mlVf630hnPSTSCuXmGo2CxuIAKT7RRvZ1QjB4="}
https
PUT
api.github.com
None
/orgs/demoorg/actions/secrets/secret_act_name
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"key_id": "3380204578043523366", "encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b", "visibility": "selected", "selected_repository_ids": [744692002, 751491527]}
204
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:06:57 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'admin:org'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4916'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '84'), ('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', 'ED16:5E18E:E4A708A:E6E8D40:65BC2411')]
https
GET
api.github.com
None
/users/Lyloa
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('status', '200 OK'), ('content-length', '554'), ('x-ratelimit-limit', '5000'), ('x-ratelimit-remaining', '4955'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('etag', '"4e931612aa9051643f0a428d2ae60b2e"'), ('date', 'Sun, 27 May 2012 05:34:26 GMT'), ('content-type', 'application/json; charset=utf-8')]
{"type":"User","url":"https://api.github.com/users/Lyloa","html_url":"https://github.com/Lyloa","company":null,"gravatar_id":"1517ed584458ccf83e03f5d77d9699d7","avatar_url":"https://secure.gravatar.com/avatar/1517ed584458ccf83e03f5d77d9699d7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","followers":1,"following":0,"created_at":"2011-10-16T14:36:46Z","blog":null,"login":"Lyloa","public_gists":0,"hireable":false,"name":"Lyloa","bio":null,"id":1131432,"public_repos":0,"location":"Paris","email":"nyu@lyloa.net"}
https
PUT
api.github.com
None
/repos/jacquev6/PyGithub/collaborators/Lyloa
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"permission": "custom_role"}
204
[('status', '204 No Content'), ('x-ratelimit-remaining', '4953'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"d41d8cd98f00b204e9800998ecf8427e"'), ('date', 'Sun, 27 May 2012 05:34:27 GMT')]
https
POST
api.github.com
None
/repos/jacquev6/PyGithub/releases
{'Content-Type': 'application/json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
{"prerelease": false, "generate_release_notes": true, "tag_name": "vX.Y.Z-by-PyGithub-acctest-release-notes", "draft": false}
201
[('content-length', '1656'), ('x-runtime-rack', '0.601694'), ('vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('x-xss-protection', '1; mode=block'), ('x-content-type-options', 'nosniff'), ('etag', '"64c4aea05900ae1072ee705caf9b529c"'), ('location', 'https://api.github.com/repos/jacquev6/PyGithub/releases/7636454'), ('cache-control', 'private, max-age=60, s-maxage=60'), ('status', '201 Created'), ('x-ratelimit-remaining', '4951'), ('x-github-media-type', 'github.v3; format=json'), ('access-control-expose-headers', 'ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'), ('x-github-request-id', '92E2:1D39A:50FE29C:5DF3D65:59AE9019'), ('date', 'Tue, 05 Sep 2017 11:52:58 GMT'), ('access-control-allow-origin', '*'), ('content-security-policy', "default-src 'none'"), ('strict-transport-security', 'max-age=31536000; includeSubdomains; preload'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('x-frame-options', 'deny'), ('content-type', 'application/json; charset=utf-8'), ('x-ratelimit-reset', '1504614271')]
{"url":"https://api.github.com/repos/jacquev6/PyGithub/releases/7636454","assets_url":"https://api.github.com/repos/jacquev6/PyGithub/releases/7636454/assets","upload_url":"https://uploads.github.com/repos/jacquev6/PyGithub/releases/7636454/assets{?name,label}","html_url":"https://github.com/jacquev6/PyGithub/releases/tag/vX.Y.Z-by-PyGithub-acctest-release-notes","id":7636454,"tag_name":"vX.Y.Z-by-PyGithub-acctest-release-notes","target_commitish":"master","name":"vX.Y.Z: PyGithub acctest-release-notes","draft":false,"author":{"login":"jacquev6","id":3760893,"avatar_url":"https://avatars2.githubusercontent.com/u/3760893?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2016-10-29T02:39:27Z","published_at":"2017-09-05T11:52:58Z","assets":[],"tarball_url":"https://api.github.com/repos/jacquev6/PyGithub/tarball/vX.Y.Z-by-PyGithub-acctest-release-notes","zipball_url":"https://api.github.com/repos/jacquev6/PyGithub/zipball/vX.Y.Z-by-PyGithub-acctest-release-notes","body":"This release is created by PyGithub"}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-1
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:17: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/"9c4b75dd089a2a530c8efb2f9363e83047d8422cc155692914678bf31dcd2880"'), ('Last-Modified', 'Wed, 17 Jan 2024 20:16:00 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4900'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '100'), ('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', 'ED57:6F665:EA48DC1:EC8CB81:65BC26A2')]
{"id":744692002,"node_id":"R_kgDOLGMZIg","name":"demo-repo-1","full_name":"demoorg/demo-repo-1","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-1","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-1","forks_url":"https://api.github.com/repos/demoorg/demo-repo-1/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-1/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-1/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-1/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-1/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-1/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-1/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-1/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-1/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-1/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-1/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-1/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-1/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-1/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-1/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-1/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-1/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-1/deployments","created_at":"2024-01-17T20:15:59Z","updated_at":"2024-01-17T20:16:00Z","pushed_at":"2024-01-17T20:16:00Z","git_url":"git://github.com/demoorg/demo-repo-1.git","ssh_url":"git@github.com:demoorg/demo-repo-1.git","clone_url":"https://github.com/demoorg/demo-repo-1.git","svn_url":"https://github.com/demoorg/demo-repo-1","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":0,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":false,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":0,"subscribers_count":0}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-1/actions/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:17: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/"63c55f32262fbaf6c8015e5a31e233a90ba8105255746204ba09c641ed874e7d"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4899'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '101'), ('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', 'ED58:364456:13AEE40:13E87A7:65BC26A2')]
{"key_id":"3380204578043523366","key":"oWxGlztcubVOX/ehKONYj83dSjyS4BZphl6dC6L6W3U="}
https
PUT
api.github.com
None
/repos/demoorg/demo-repo-1/actions/secrets/secret_name
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"key_id": "3380204578043523366", "encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"}
201
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:17:55 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"ef7d1a03b3332b83aecd008a006821ad3613d37a6ec742a794010bc2d93610cf"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4898'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '102'), ('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', 'ED59:157E91:E3DC1C3:E61B2A7:65BC26A3')]
{}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-1
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:17:32 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/"9c4b75dd089a2a530c8efb2f9363e83047d8422cc155692914678bf31dcd2880"'), ('Last-Modified', 'Wed, 17 Jan 2024 20:16:00 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4905'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '95'), ('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', 'ED51:312C7:E2ACED8:E4EC47F:65BC268B')]
{"id":744692002,"node_id":"R_kgDOLGMZIg","name":"demo-repo-1","full_name":"demoorg/demo-repo-1","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-1","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-1","forks_url":"https://api.github.com/repos/demoorg/demo-repo-1/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-1/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-1/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-1/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-1/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-1/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-1/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-1/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-1/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-1/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-1/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-1/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-1/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-1/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-1/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-1/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-1/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-1/deployments","created_at":"2024-01-17T20:15:59Z","updated_at":"2024-01-17T20:16:00Z","pushed_at":"2024-01-17T20:16:00Z","git_url":"git://github.com/demoorg/demo-repo-1.git","ssh_url":"git@github.com:demoorg/demo-repo-1.git","clone_url":"https://github.com/demoorg/demo-repo-1.git","svn_url":"https://github.com/demoorg/demo-repo-1","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":0,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":false,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":0,"subscribers_count":0}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-1/dependabot/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:17:32 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/"f426af681aa5a6686aba8e402f462cdfaf20f45bf4386951168a3a7df8c1d8d8"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4904'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '96'), ('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', 'ED52:45DB9:DFC4616:E203AF7:65BC268C')]
{"key_id":"3380217566468950943","key":"zMhrH6T/7s0pnAFGSEVKt8nH5XTuCdTIhNcSBgdeeyQ="}
https
PUT
api.github.com
None
/repos/demoorg/demo-repo-1/dependabot/secrets/secret_name
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"key_id": "3380217566468950943", "encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"}
201
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:17:32 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"ef7d1a03b3332b83aecd008a006821ad3613d37a6ec742a794010bc2d93610cf"'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4903'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '97'), ('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', 'ED53:2EE190:B6710DC:B85CE2C:65BC268C')]
{}
https
GET
api.github.com
None
/repos/PyGithub/PyGithub
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 12:09:42 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/"afad6da141600197f48648aea815caa9122a7a21d2ffd08a9f1f88f71fcefce6"'), ('Last-Modified', 'Thu, 01 Feb 2024 11:21:11 GMT'), ('X-OAuth-Scopes', 'repo'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-02-23 19:07:32 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4997'), ('X-RateLimit-Reset', '1706792982'), ('X-RateLimit-Used', '3'), ('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', 'B621:D6070:4412ACB:44D2A3D:65BB8A06')]
{"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","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":"2024-02-01T11:21:11Z","pushed_at":"2024-02-01T11:03:04Z","git_url":"git://github.com/PyGithub/PyGithub.git","ssh_url":"git@github.com:PyGithub/PyGithub.git","clone_url":"https://github.com/PyGithub/PyGithub.git","svn_url":"https://github.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":15666,"stargazers_count":6506,"watchers_count":6506,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1719,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":275,"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":1719,"open_issues":275,"watchers":6506,"default_branch":"main","permissions":{"admin":false,"maintain":false,"push":false,"triage":false,"pull":true},"temp_clone_token":"","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","site_admin":false},"network_count":1719,"subscribers_count":111}
https
GET
api.github.com
None
/repos/PyGithub/PyGithub/actions/runs?created=2022-12-24
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 12:09:43 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/"de506f1de78297cd93346ec22d4d061f087a4dddaa4aa5241faabc18ee3cc923"'), ('X-OAuth-Scopes', 'repo'), ('X-Accepted-OAuth-Scopes', ''), ('github-authentication-token-expiration', '2024-02-23 19:07:32 UTC'), ('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', '1706792982'), ('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'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'B622:2C9777:B82985F:BA03798:65BB8A06')]
{"total_count":1,"workflow_runs":[{"id":3770390952,"name":"CI","node_id":"WFR_kwLOADYVqs7gu5mo","head_branch":"patch-1","head_sha":"84e26cfaa0eede8179f34272f03afa28d76a07a7","path":".github/workflows/ci.yml","display_title":"CI: Update action actions/setup-python","run_number":916,"event":"pull_request","status":"completed","conclusion":"success","workflow_id":1903133,"check_suite_id":10039322119,"check_suite_node_id":"CS_kwDOADYVqs8AAAACVmPmBw","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/3770390952","pull_requests":[],"created_at":"2022-12-24T07:29:12Z","updated_at":"2024-01-29T23:29:45Z","actor":{"login":"cclauss","id":3709715,"node_id":"MDQ6VXNlcjM3MDk3MTU=","avatar_url":"https://avatars.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"run_attempt":1,"referenced_workflows":[],"run_started_at":"2022-12-24T07:29:12Z","triggering_actor":{"login":"cclauss","id":3709715,"node_id":"MDQ6VXNlcjM3MDk3MTU=","avatar_url":"https://avatars.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/10039322119","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"84e26cfaa0eede8179f34272f03afa28d76a07a7","tree_id":"a0a51aff2b432542f78e9484272ac779ecd8f219","message":"Merge branch 'master' into patch-1","timestamp":"2022-12-24T07:29:07Z","author":{"name":"Christian Clauss","email":"cclauss@me.com"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"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","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"},"head_repository":{"id":30936332,"node_id":"MDEwOlJlcG9zaXRvcnkzMDkzNjMzMg==","name":"PyGithub","full_name":"cclauss/PyGithub","private":false,"owner":{"login":"cclauss","id":3709715,"node_id":"MDQ6VXNlcjM3MDk3MTU=","avatar_url":"https://avatars.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cclauss/PyGithub","description":"Python library implementing the full GitHub API v3","fork":true,"url":"https://api.github.com/repos/cclauss/PyGithub","forks_url":"https://api.github.com/repos/cclauss/PyGithub/forks","keys_url":"https://api.github.com/repos/cclauss/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cclauss/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cclauss/PyGithub/teams","hooks_url":"https://api.github.com/repos/cclauss/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/cclauss/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/cclauss/PyGithub/events","assignees_url":"https://api.github.com/repos/cclauss/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/cclauss/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/cclauss/PyGithub/tags","blobs_url":"https://api.github.com/repos/cclauss/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cclauss/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cclauss/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/cclauss/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cclauss/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/cclauss/PyGithub/languages","stargazers_url":"https://api.github.com/repos/cclauss/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/cclauss/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/cclauss/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/cclauss/PyGithub/subscription","commits_url":"https://api.github.com/repos/cclauss/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/cclauss/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/cclauss/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/cclauss/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/cclauss/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/cclauss/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cclauss/PyGithub/merges","archive_url":"https://api.github.com/repos/cclauss/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cclauss/PyGithub/downloads","issues_url":"https://api.github.com/repos/cclauss/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/cclauss/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/cclauss/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/cclauss/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cclauss/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/cclauss/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/cclauss/PyGithub/deployments"}}]}
https
GET
api.github.com
None
/repos/demoorg/demo-repo-1
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Feb 2024 23:18:33 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/"9c4b75dd089a2a530c8efb2f9363e83047d8422cc155692914678bf31dcd2880"'), ('Last-Modified', 'Wed, 17 Jan 2024 20:16:00 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:public_key, repo, user'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-03-02 22:39:38 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4895'), ('X-RateLimit-Reset', '1706829971'), ('X-RateLimit-Used', '105'), ('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', 'ED5D:D6070:71DB13B:7303E28:65BC26C9')]
{"id":744692002,"node_id":"R_kgDOLGMZIg","name":"demo-repo-1","full_name":"demoorg/demo-repo-1","private":false,"owner":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/demoorg/demo-repo-1","description":null,"fork":false,"url":"https://api.github.com/repos/demoorg/demo-repo-1","forks_url":"https://api.github.com/repos/demoorg/demo-repo-1/forks","keys_url":"https://api.github.com/repos/demoorg/demo-repo-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demoorg/demo-repo-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demoorg/demo-repo-1/teams","hooks_url":"https://api.github.com/repos/demoorg/demo-repo-1/hooks","issue_events_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/events{/number}","events_url":"https://api.github.com/repos/demoorg/demo-repo-1/events","assignees_url":"https://api.github.com/repos/demoorg/demo-repo-1/assignees{/user}","branches_url":"https://api.github.com/repos/demoorg/demo-repo-1/branches{/branch}","tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/tags","blobs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demoorg/demo-repo-1/statuses/{sha}","languages_url":"https://api.github.com/repos/demoorg/demo-repo-1/languages","stargazers_url":"https://api.github.com/repos/demoorg/demo-repo-1/stargazers","contributors_url":"https://api.github.com/repos/demoorg/demo-repo-1/contributors","subscribers_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscribers","subscription_url":"https://api.github.com/repos/demoorg/demo-repo-1/subscription","commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/demoorg/demo-repo-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/demoorg/demo-repo-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/demoorg/demo-repo-1/contents/{+path}","compare_url":"https://api.github.com/repos/demoorg/demo-repo-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demoorg/demo-repo-1/merges","archive_url":"https://api.github.com/repos/demoorg/demo-repo-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demoorg/demo-repo-1/downloads","issues_url":"https://api.github.com/repos/demoorg/demo-repo-1/issues{/number}","pulls_url":"https://api.github.com/repos/demoorg/demo-repo-1/pulls{/number}","milestones_url":"https://api.github.com/repos/demoorg/demo-repo-1/milestones{/number}","notifications_url":"https://api.github.com/repos/demoorg/demo-repo-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demoorg/demo-repo-1/labels{/name}","releases_url":"https://api.github.com/repos/demoorg/demo-repo-1/releases{/id}","deployments_url":"https://api.github.com/repos/demoorg/demo-repo-1/deployments","created_at":"2024-01-17T20:15:59Z","updated_at":"2024-01-17T20:16:00Z","pushed_at":"2024-01-17T20:16:00Z","git_url":"git://github.com/demoorg/demo-repo-1.git","ssh_url":"git@github.com:demoorg/demo-repo-1.git","clone_url":"https://github.com/demoorg/demo-repo-1.git","svn_url":"https://github.com/demoorg/demo-repo-1","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"has_discussions":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":[],"visibility":"public","forks":0,"open_issues":0,"watchers":0,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":false,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","custom_properties":{},"organization":{"login":"demoorg","id":156956893,"node_id":"O_kgDOCVr43Q","avatar_url":"https://avatars.githubusercontent.com/u/156956893?v=4","gravatar_id":"","url":"https://api.github.com/users/demoorg","html_url":"https://github.com/demoorg","followers_url":"https://api.github.com/users/demoorg/followers","following_url":"https://api.github.com/users/demoorg/following{/other_user}","gists_url":"https://api.github.com/users/demoorg/gists{/gist_id}","starred_url":"https://api.github.com/users/demoorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoorg/subscriptions","organizations_url":"https://api.github.com/users/demoorg/orgs","repos_url":"https://api.github.com/users/demoorg/repos","events_url":"https://api.github.com/users/demoorg/events{/privacy}","received_events_url":"https://api.github.com/users/demoorg/received_events","type":"Organization","site_admin":false},"security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":0,"subscribers_count":0}
https
GET
api.github.com
None
/repos/PyGithub/PyGithub/actions/workflows/1026390/runs?created=2022-12-24
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Sun, 25 Dec 2022 09:19:18 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"466569f303915b04b955e89a3d37b92736baf3a881558c556c40bacc9cf6cf7a"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '27'), ('X-RateLimit-Reset', '1671961520'), ('X-RateLimit-Used', '33'), ('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', '6903:7828:147F8C9:15F2E9E:63A81595')]
{"total_count":1,"workflow_runs":[{"id":3770390952,"name":"CI","node_id":"WFR_kwLOADYVqs7gu5mo","head_branch":"patch-1","head_sha":"84e26cfaa0eede8179f34272f03afa28d76a07a7","path":".github/workflows/check.yml","display_title":"CI: Upgrade to Python 3.11 production release","run_number":916,"event":"pull_request","status":"completed","conclusion":"success","workflow_id":1903133,"check_suite_id":10039322119,"check_suite_node_id":"CS_kwDOADYVqs8AAAACVmPmBw","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/3770390952","pull_requests":[],"created_at":"2022-12-24T07:29:12Z","updated_at":"2022-12-24T07:31:39Z","actor":{"login":"cclauss","id":3709715,"node_id":"MDQ6VXNlcjM3MDk3MTU=","avatar_url":"https://avatars.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"run_attempt":1,"referenced_workflows":[],"run_started_at":"2022-12-24T07:29:12Z","triggering_actor":{"login":"cclauss","id":3709715,"node_id":"MDQ6VXNlcjM3MDk3MTU=","avatar_url":"https://avatars.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/10039322119","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3770390952/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"84e26cfaa0eede8179f34272f03afa28d76a07a7","tree_id":"a0a51aff2b432542f78e9484272ac779ecd8f219","message":"Merge branch 'master' into patch-1","timestamp":"2022-12-24T07:29:07Z","author":{"name":"Christian Clauss","email":"cclauss@me.com"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"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","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"},"head_repository":{"id":30936332,"node_id":"MDEwOlJlcG9zaXRvcnkzMDkzNjMzMg==","name":"PyGithub","full_name":"cclauss/PyGithub","private":false,"owner":{"login":"cclauss","id":3709715,"node_id":"MDQ6VXNlcjM3MDk3MTU=","avatar_url":"https://avatars.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cclauss/PyGithub","description":"Python library implementing the full GitHub API v3","fork":true,"url":"https://api.github.com/repos/cclauss/PyGithub","forks_url":"https://api.github.com/repos/cclauss/PyGithub/forks","keys_url":"https://api.github.com/repos/cclauss/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cclauss/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cclauss/PyGithub/teams","hooks_url":"https://api.github.com/repos/cclauss/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/cclauss/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/cclauss/PyGithub/events","assignees_url":"https://api.github.com/repos/cclauss/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/cclauss/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/cclauss/PyGithub/tags","blobs_url":"https://api.github.com/repos/cclauss/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cclauss/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cclauss/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/cclauss/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cclauss/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/cclauss/PyGithub/languages","stargazers_url":"https://api.github.com/repos/cclauss/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/cclauss/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/cclauss/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/cclauss/PyGithub/subscription","commits_url":"https://api.github.com/repos/cclauss/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/cclauss/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/cclauss/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/cclauss/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/cclauss/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/cclauss/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cclauss/PyGithub/merges","archive_url":"https://api.github.com/repos/cclauss/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cclauss/PyGithub/downloads","issues_url":"https://api.github.com/repos/cclauss/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/cclauss/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/cclauss/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/cclauss/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cclauss/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/cclauss/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/cclauss/PyGithub/deployments"}}]}
+2
-0

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Sol Redfern <59831933+Tsuesun@users.noreply.github.com> #
# Copyright 2024 Aiden Grossman <agrossman154@yahoo.com> #
# #

@@ -58,1 +59,2 @@ # This file is part of PyGithub. #

.mypy_cache/
*.swp

@@ -37,2 +37,9 @@ default_language_version:

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: ["--in-place"]
- repo: https://github.com/psf/black

@@ -39,0 +46,0 @@ rev: 23.12.0

@@ -97,4 +97,15 @@ # Contributing

If you use 2 factor authentication on your Github account, tests that require a login/password authentication will fail.
You can use `pytest Issue139.testCompletion --record --auth_with_token` to use the `oauth_token` field specified in `GithubCredentials.py` when recording a unit test interaction. Note that the `password = ""` (empty string is ok) must still be present in `GithubCredentials.py` to run the tests even when the `--auth_with_token` arg is used. (Also note that if you record your test data with `--auth_with_token` then you also need to be in token authentication mode when running the test. A simple alternative is to replace `token private_token_removed` with `Basic login_and_password_removed` in all your newly generated ReplayData files.)
You can use `pytest Issue139.testCompletion --record --auth_with_token` to use the `oauth_token` field specified in `GithubCredentials.py` when recording a unit test interaction. Note that the `password = ""` (empty string is ok) must still be present in `GithubCredentials.py` to run the tests even when the `--auth_with_token` arg is used.
Also note that if you record your test data with `--auth_with_token` then you also need to be in token authentication mode when running the test. You can do this by setting `tokenAuthMode` to be true like so:
```python
def setUp(self):
self.tokenAuthMode = True
super().setUp()
...
```
A simple alternative is to replace `token private_token_removed` with `Basic login_and_password_removed` in all your newly generated ReplayData files.
Similarly, you can use `pytest Issue139.testCompletion --record --auth_with_jwt` to use the `jwt` field specified in `GithubCredentials.py` to access endpoints that require JWT.

@@ -118,3 +129,3 @@

```bash
pip install -r requirements.txt
pip install -r requirements/docs.txt
sphinx-build doc build

@@ -121,0 +132,0 @@ ```

@@ -12,2 +12,4 @@ Authentication

>>> from github import Auth
>>> from github import Github
>>> from github import GithubIntegration

@@ -14,0 +16,0 @@ Login authentication

+8
-7

@@ -22,2 +22,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -41,9 +42,9 @@ # This file is part of PyGithub. #

################################################################################
"""
The primary class you will instantiate is :class:`github.MainClass.Github`.
From its ``get_``, ``create_`` methods, you will obtain instances of all Github objects
like :class:`github.NamedUser.NamedUser` or :class:`github.Repository.Repository`.
The primary class you will instantiate is :class:`github.MainClass.Github`. From its ``get_``, ``create_`` methods, you
will obtain instances of all Github objects like :class:`github.NamedUser.NamedUser` or
:class:`github.Repository.Repository`.
All classes inherit from :class:`github.GithubObject.GithubObject`.
"""

@@ -80,4 +81,3 @@

"""
Set the log level of the github logger, e.g. set_log_level(logging.WARNING)
:param level: log level
Set the log level of the github logger, e.g. set_log_level(logging.WARNING) :param level: log level.
"""

@@ -89,3 +89,4 @@ logger.setLevel(level)

"""
This function sets up a very simple logging configuration (log everything on standard output) that is useful for troubleshooting.
This function sets up a very simple logging configuration (log everything on standard output) that is useful for
troubleshooting.
"""

@@ -92,0 +93,0 @@ set_log_level(logging.DEBUG)

@@ -5,2 +5,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Joseph Henrich <crimsonknave@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -7,0 +8,0 @@ # #

@@ -8,2 +8,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +54,6 @@ # This file is part of PyGithub. #

This class represents a credit that is assigned to a SecurityAdvisory.
The reference can be found here https://docs.github.com/en/rest/security-advisories/repository-advisories
The reference can be found here
https://docs.github.com/en/rest/security-advisories/repository-advisories
"""

@@ -56,0 +60,0 @@

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,6 @@ # This file is part of PyGithub. #

This class represents a credit that is assigned to a SecurityAdvisory.
The reference can be found here https://docs.github.com/en/rest/security-advisories/repository-advisories
The reference can be found here
https://docs.github.com/en/rest/security-advisories/repository-advisories
"""

@@ -55,0 +59,0 @@

@@ -8,2 +8,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -67,3 +68,6 @@ # This file is part of PyGithub. #

This class represents a package that is vulnerable to a parent SecurityAdvisory.
The reference can be found here https://docs.github.com/en/rest/security-advisories/repository-advisories
The reference can be found here
https://docs.github.com/en/rest/security-advisories/repository-advisories
"""

@@ -70,0 +74,0 @@

@@ -22,2 +22,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -53,3 +55,6 @@ # #

This class represents an identifier for a package that is vulnerable to a parent SecurityAdvisory.
The reference can be found here https://docs.github.com/en/rest/security-advisories/repository-advisories
The reference can be found here
https://docs.github.com/en/rest/security-advisories/repository-advisories
"""

@@ -56,0 +61,0 @@

@@ -9,2 +9,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -36,2 +38,3 @@ # This file is part of PyGithub. #

import github.Auth
from github.Consts import DEFAULT_BASE_URL, DEFAULT_OAUTH_URL
from github.GithubException import BadCredentialsException, GithubException

@@ -49,3 +52,6 @@ from github.GithubObject import Attribute, NonCompletableGithubObject, NotSet

This class is used for identifying and authorizing users for Github Apps.
The reference can be found at https://docs.github.com/en/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps
The reference can be found at
https://docs.github.com/en/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps
"""

@@ -85,2 +91,12 @@

def get_oauth_url(self, path: str) -> str:
if not path.startswith("/"):
path = f"/{path}"
if self._requester.base_url == DEFAULT_BASE_URL:
base_url = DEFAULT_OAUTH_URL
else:
base_url = f"{self._requester.scheme}://{self._requester.hostname_and_port}/login/oauth"
return f"{base_url}{path}"
def get_login_url(

@@ -92,3 +108,5 @@ self,

) -> str:
"""Return the URL you need to redirect a user to in order to authorize your App."""
"""
Return the URL you need to redirect a user to in order to authorize your App.
"""
parameters = {"client_id": self.client_id}

@@ -107,4 +125,3 @@ if redirect_uri is not None:

base_url = "https://github.com/login/oauth/authorize"
return f"{base_url}?{query}"
return self.get_oauth_url(f"/authorize?{query}")

@@ -128,3 +145,3 @@ def get_access_token(self, code: str, state: str | None = None) -> AccessToken:

"POST",
"https://github.com/login/oauth/access_token",
self.get_oauth_url("/access_token"),
headers={"Accept": "application/json"},

@@ -170,3 +187,3 @@ input=post_parameters,

"POST",
"https://github.com/login/oauth/access_token",
self.get_oauth_url("/access_token"),
headers={"Accept": "application/json"},

@@ -173,0 +190,0 @@ input=post_parameters,

@@ -24,2 +24,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -58,3 +59,3 @@ # This file is part of PyGithub. #

"""
This class represents an Artifact of Github Run
This class represents an Artifact of Github Run.
"""

@@ -61,0 +62,0 @@

@@ -7,2 +7,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 chantra <chantra@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -60,3 +62,5 @@ # This file is part of PyGithub. #

The type of the auth token as used in the HTTP Authorization header, e.g. Bearer or Basic.
:return: token type
"""

@@ -69,3 +73,5 @@

The auth token as used in the HTTP Authorization header.
:return: token
"""

@@ -78,3 +84,5 @@

def username(self) -> str:
"""The username."""
"""
The username.
"""

@@ -84,3 +92,5 @@ @property

def password(self) -> str:
"""The password"""
"""
The password.
"""

@@ -145,3 +155,5 @@ @property

This class is the base class to authenticate with a JSON Web Token (JWT).
https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app
"""

@@ -157,3 +169,5 @@

This class is used to authenticate as a GitHub App.
https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app
"""

@@ -203,2 +217,3 @@

Creates a github.Auth.AppInstallationAuth instance for an installation.
:param installation_id: installation id

@@ -208,2 +223,3 @@ :param token_permissions: optional permissions

:return:
"""

@@ -239,3 +255,5 @@ return AppInstallationAuth(self, installation_id, token_permissions, requester)

This class is used to authenticate as a GitHub App with a single constant JWT.
https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app
"""

@@ -256,3 +274,5 @@

This class is used to authenticate as a GitHub App Installation.
https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation
"""

@@ -276,2 +296,3 @@

assert token_permissions is None or isinstance(token_permissions, dict), token_permissions
assert requester is None or isinstance(requester, Requester), requester

@@ -286,2 +307,3 @@ self._app_auth = app_auth

def withRequester(self, requester: Requester) -> "AppInstallationAuth":
assert isinstance(requester, Requester), requester
super().withRequester(requester.withAuth(self._app_auth))

@@ -339,3 +361,5 @@

This class is used to authenticate as a GitHub App on behalf of a user.
https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user
"""

@@ -370,22 +394,10 @@

assert isinstance(client_id, str)
assert len(client_id) > 0
assert isinstance(client_secret, str)
assert len(client_secret) > 0
assert isinstance(token, str)
assert len(token) > 0
if token_type is not None:
assert isinstance(token_type, str)
assert len(token_type) > 0
assert isinstance(token, str)
if token_type is not None:
assert isinstance(token_type, str)
assert len(token_type) > 0
if expires_at is not None:
assert isinstance(expires_at, datetime)
if refresh_token is not None:
assert isinstance(refresh_token, str)
assert len(refresh_token) > 0
if refresh_expires_at is not None:
assert isinstance(refresh_expires_at, datetime)
assert isinstance(client_id, str) and len(client_id) > 0
assert isinstance(client_secret, str) and len(client_secret) > 0
assert isinstance(token, str) and len(token) > 0
assert token_type is None or isinstance(token_type, str) and len(token_type) > 0, token_type
assert expires_at is None or isinstance(expires_at, datetime), expires_at
assert refresh_token is None or isinstance(refresh_token, str) and len(refresh_token) > 0
assert refresh_expires_at is None or isinstance(refresh_expires_at, datetime), refresh_expires_at
assert requester is None or isinstance(requester, Requester), requester

@@ -414,2 +426,3 @@ self._client_id = client_id

def withRequester(self, requester: Requester) -> "AppUserAuth":
assert isinstance(requester, Requester), requester
super().withRequester(requester.withAuth(None))

@@ -493,2 +506,3 @@

def withRequester(self, requester: Requester) -> "NetrcAuth":
assert isinstance(requester, Requester), requester
super().withRequester(requester)

@@ -495,0 +509,0 @@

@@ -50,2 +50,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 chantra <chantra@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Oskar Jansson <56458534+janssonoskar@users.noreply.github.com>#

@@ -52,0 +53,0 @@ # #

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -54,3 +55,7 @@ # This file is part of PyGithub. #

"""
This class represents Authorizations. The reference can be found here https://docs.github.com/en/enterprise-server@3.0/rest/reference/oauth-authorizations
This class represents Authorizations.
The reference can be found here
https://docs.github.com/en/enterprise-server@3.0/rest/reference/oauth-authorizations
"""

@@ -57,0 +62,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,3 @@ # This file is part of PyGithub. #

"""
This class represents AuthorizationApplications
This class represents AuthorizationApplications.
"""

@@ -47,0 +48,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,6 @@ # This file is part of PyGithub. #

This class represents Repository autolinks.
The reference can be found here https://docs.github.com/en/rest/repos/autolinks?apiVersion=2022-11-28
The reference can be found here
https://docs.github.com/en/rest/repos/autolinks?apiVersion=2022-11-28
"""

@@ -51,0 +55,0 @@

@@ -30,2 +30,4 @@ ############################ Copyrights and license ############################

# Copyright 2024 Benjamin K <53038537+treee111@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -82,3 +84,7 @@ # This file is part of PyGithub. #

"""
This class represents Branches. The reference can be found here https://docs.github.com/en/rest/reference/repos#branches
This class represents Branches.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#branches
"""

@@ -85,0 +91,0 @@

@@ -12,2 +12,4 @@ ############################ Copyrights and license ############################

# Copyright 2024 Benjamin K <53038537+treee111@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +55,7 @@ # This file is part of PyGithub. #

"""
This class represents Branch Protection. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-branch-protection
This class represents Branch Protection.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-branch-protection
"""

@@ -56,0 +62,0 @@

@@ -10,2 +10,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -61,3 +62,6 @@ # This file is part of PyGithub. #

This class represents check runs.
The reference can be found here https://docs.github.com/en/rest/reference/checks#check-runs
The reference can be found here
https://docs.github.com/en/rest/reference/checks#check-runs
"""

@@ -64,0 +68,0 @@

@@ -8,2 +8,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -36,3 +37,5 @@ # This file is part of PyGithub. #

This class represents check run annotations.
The reference can be found here: https://docs.github.com/en/rest/reference/checks#list-check-run-annotations
"""

@@ -39,0 +42,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,3 +46,5 @@ # This file is part of PyGithub. #

class CheckRunOutput(NonCompletableGithubObject):
"""This class represents the output of check run."""
"""
This class represents the output of check run.
"""

@@ -48,0 +51,0 @@ def _initAttributes(self) -> None:

@@ -10,2 +10,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +54,7 @@ # This file is part of PyGithub. #

"""
This class represents check suites. The reference can be found here https://docs.github.com/en/rest/reference/checks#check-suites
This class represents check suites.
The reference can be found here
https://docs.github.com/en/rest/reference/checks#check-suites
"""

@@ -56,0 +61,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,6 @@ # This file is part of PyGithub. #

This class represents a popular Path for a GitHub repository.
The reference can be found here https://docs.github.com/en/rest/reference/repos#get-repository-clones
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-repository-clones
"""

@@ -51,0 +55,0 @@

@@ -7,2 +7,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,6 @@ # This file is part of PyGithub. #

This class represents alerts from code scanning.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
The reference can be found here
https://docs.github.com/en/rest/reference/code-scanning.
"""

@@ -115,3 +119,6 @@

"""
:calls: `GET` on the URL for instances as provided by Github
Get instances.
:calls: `GET` on the URL for instances as provided by Github.
"""

@@ -118,0 +125,0 @@ return PaginatedList(

@@ -7,2 +7,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -41,3 +42,6 @@ # This file is part of PyGithub. #

This class represents code scanning alert instances.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
The reference can be found here
https://docs.github.com/en/rest/reference/code-scanning.
"""

@@ -44,0 +48,0 @@

@@ -8,2 +8,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -36,3 +37,6 @@ # This file is part of PyGithub. #

This class represents code scanning alert instance locations.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
The reference can be found here
https://docs.github.com/en/rest/reference/code-scanning.
"""

@@ -39,0 +43,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -50,3 +51,6 @@ # This file is part of PyGithub. #

This class represents Alerts from code scanning.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
The reference can be found here
https://docs.github.com/en/rest/reference/code-scanning.
"""

@@ -53,0 +57,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,6 @@ # This file is part of PyGithub. #

This class represents code scanning tools.
The reference can be found here https://docs.github.com/en/rest/reference/code-scanning.
The reference can be found here
https://docs.github.com/en/rest/reference/code-scanning.
"""

@@ -50,0 +54,0 @@

@@ -24,2 +24,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -76,3 +77,7 @@ # This file is part of PyGithub. #

"""
This class represents Commits. The reference can be found here https://docs.github.com/en/rest/reference/git#commits
This class represents Commits.
The reference can be found here
https://docs.github.com/en/rest/reference/git#commits
"""

@@ -79,0 +84,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -51,3 +52,7 @@ # This file is part of PyGithub. #

"""
This class represents CommitCombinedStatuses. The reference can be found here https://docs.github.com/en/rest/reference/repos#statuses
This class represents CommitCombinedStatuses.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#statuses
"""

@@ -54,0 +59,0 @@

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -60,3 +61,7 @@ # This file is part of PyGithub. #

"""
This class represents CommitComments. The reference can be found here https://docs.github.com/en/rest/reference/repos#comments
This class represents CommitComments.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#comments
"""

@@ -63,0 +68,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -50,3 +51,3 @@ # This file is part of PyGithub. #

"""
This class represents Comparisons
This class represents Comparisons.
"""

@@ -53,0 +54,0 @@

@@ -36,2 +36,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# #

@@ -158,2 +159,3 @@ # This file is part of PyGithub. #

DEFAULT_BASE_URL = "https://api.github.com"
DEFAULT_OAUTH_URL = "https://github.com/login/oauth"
DEFAULT_STATUS_URL = "https://status.github.com"

@@ -160,0 +162,0 @@ DEFAULT_USER_AGENT = "PyGithub/Python"

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -59,3 +60,7 @@ # This file is part of PyGithub. #

"""
This class represents ContentFiles. The reference can be found here https://docs.github.com/en/rest/reference/repos#contents
This class represents ContentFiles.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#contents
"""

@@ -62,0 +67,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -49,3 +50,6 @@ # This file is part of PyGithub. #

This class represents a CVSS.
The reference can be found here <https://docs.github.com/en/rest/security-advisories/global-advisories>
The reference can be found here
<https://docs.github.com/en/rest/security-advisories/global-advisories>
"""

@@ -52,0 +56,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -49,3 +50,6 @@ # This file is part of PyGithub. #

This class represents a CWE.
The reference can be found here https://docs.github.com/en/rest/security-advisories/repository-advisories
The reference can be found here
https://docs.github.com/en/rest/security-advisories/repository-advisories
"""

@@ -52,0 +56,0 @@

############################ Copyrights and license ############################
# #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -45,3 +47,6 @@ # #

This class represents a DependabotAlert.
The reference can be found here https://docs.github.com/en/rest/dependabot/alerts
The reference can be found here
https://docs.github.com/en/rest/dependabot/alerts
"""

@@ -48,0 +53,0 @@

############################ Copyrights and license ############################
# #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -38,3 +40,6 @@ # #

This class represents a package flagged by a Dependabot alert that is vulnerable to a parent SecurityAdvisory.
The reference can be found here https://docs.github.com/en/rest/dependabot/alerts
The reference can be found here
https://docs.github.com/en/rest/dependabot/alerts
"""

@@ -41,0 +46,0 @@

############################ Copyrights and license ############################
# #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -34,3 +36,6 @@ # #

This class represents a DependabotAlertDependency.
The reference can be found here https://docs.github.com/en/rest/dependabot/alerts
The reference can be found here
https://docs.github.com/en/rest/dependabot/alerts
"""

@@ -37,0 +42,0 @@

############################ Copyrights and license ############################
# #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -4,0 +5,0 @@ # #

@@ -24,2 +24,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -58,3 +59,7 @@ # This file is part of PyGithub. #

"""
This class represents Deployments. The reference can be found here https://docs.github.com/en/rest/reference/repos#deployments
This class represents Deployments.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#deployments
"""

@@ -61,0 +66,0 @@

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -54,3 +55,7 @@ # This file is part of PyGithub. #

"""
This class represents Deployment Statuses. The reference can be found here https://docs.github.com/en/rest/reference/repos#deployments
This class represents Deployment Statuses.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#deployments
"""

@@ -57,0 +62,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,7 @@ # This file is part of PyGithub. #

"""
This class represents Downloads. The reference can be found here https://docs.github.com/en/rest/reference/repos
This class represents Downloads.
The reference can be found here
https://docs.github.com/en/rest/reference/repos
"""

@@ -51,0 +56,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 YugoHino <henom06@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -49,4 +50,8 @@ # This file is part of PyGithub. #

"""
This class represents Enterprises. Such objects do not exist in the Github API, so this class merely collects all endpoints the start with /enterprises/{enterprise}/. See methods below for specific endpoints and docs.
This class represents Enterprises.
Such objects do not exist in the Github API, so this class merely collects all endpoints the start with
/enterprises/{enterprise}/. See methods below for specific endpoints and docs.
https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin?apiVersion=2022-11-28
"""

@@ -53,0 +58,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -49,3 +50,7 @@ # This file is part of PyGithub. #

"""
This class represents license consumed by enterprises. The reference can be found here https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/license#list-enterprise-consumed-licenses
This class represents license consumed by enterprises.
The reference can be found here
https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/license#list-enterprise-consumed-licenses
"""

@@ -52,0 +57,0 @@

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 alson <git@alm.nufan.net> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -61,3 +62,7 @@ # This file is part of PyGithub. #

"""
This class represents Environment. The reference can be found here https://docs.github.com/en/rest/reference/deployments#environments
This class represents Environment.
The reference can be found here
https://docs.github.com/en/rest/reference/deployments#environments
"""

@@ -176,3 +181,3 @@

"""
Gets all repository secrets
Gets all repository secrets.
"""

@@ -224,4 +229,3 @@ return PaginatedList(

"""
Gets all repository variables
:rtype: :class:`PaginatedList` of :class:`Variable`
Gets all repository variables :rtype: :class:`PaginatedList` of :class:`Variable`
"""

@@ -228,0 +232,0 @@ return PaginatedList(

@@ -7,2 +7,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 alson <git@alm.nufan.net> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -34,3 +35,7 @@ # This file is part of PyGithub. #

"""
This class represents a deployment branch policy for an environment. The reference can be found here https://docs.github.com/en/rest/reference/deployments#environments
This class represents a deployment branch policy for an environment.
The reference can be found here
https://docs.github.com/en/rest/reference/deployments#environments
"""

@@ -37,0 +42,0 @@

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 alson <git@alm.nufan.net> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -54,3 +55,7 @@ # This file is part of PyGithub. #

"""
This class represents a protection rule for an environment. The reference can be found here https://docs.github.com/en/rest/reference/deployments#environments
This class represents a protection rule for an environment.
The reference can be found here
https://docs.github.com/en/rest/reference/deployments#environments
"""

@@ -57,0 +62,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 alson <git@alm.nufan.net> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -51,3 +52,7 @@ # This file is part of PyGithub. #

"""
This class represents a reviewer for an EnvironmentProtectionRule. The reference can be found here https://docs.github.com/en/rest/reference/deployments#environments
This class represents a reviewer for an EnvironmentProtectionRule.
The reference can be found here
https://docs.github.com/en/rest/reference/deployments#environments
"""

@@ -54,0 +59,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +54,7 @@ # This file is part of PyGithub. #

"""
This class represents Events. The reference can be found here https://docs.github.com/en/rest/reference/activity#events
This class represents Events.
The reference can be found here
https://docs.github.com/en/rest/reference/activity#events
"""

@@ -56,0 +61,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,3 @@ # This file is part of PyGithub. #

"""
This class represents Files
This class represents Files.
"""

@@ -50,0 +51,0 @@

@@ -24,2 +24,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -66,3 +67,7 @@ # This file is part of PyGithub. #

"""
This class represents Gists. The reference can be found here https://docs.github.com/en/rest/reference/gists
This class represents Gists.
The reference can be found here
https://docs.github.com/en/rest/reference/gists
"""

@@ -69,0 +74,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,7 @@ # This file is part of PyGithub. #

"""
This class represents GistComments. The reference can be found here https://docs.github.com/en/rest/reference/gists#comments
This class represents GistComments.
The reference can be found here
https://docs.github.com/en/rest/reference/gists#comments
"""

@@ -55,0 +60,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,3 @@ # This file is part of PyGithub. #

"""
This class represents GistFiles
This class represents GistFiles.
"""

@@ -47,0 +48,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,3 @@ # This file is part of PyGithub. #

"""
This class represents GistHistoryStates
This class represents GistHistoryStates.
"""

@@ -55,0 +56,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,3 +46,3 @@ # This file is part of PyGithub. #

"""
This class represents GitAuthors
This class represents GitAuthors.
"""

@@ -48,0 +49,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,3 +46,7 @@ # This file is part of PyGithub. #

"""
This class represents GitBlobs. The reference can be found here https://docs.github.com/en/rest/reference/git#blobs
This class represents GitBlobs.
The reference can be found here
https://docs.github.com/en/rest/reference/git#blobs
"""

@@ -48,0 +53,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -51,3 +52,7 @@ # This file is part of PyGithub. #

"""
This class represents GitCommits. The reference can be found here https://docs.github.com/en/rest/reference/git#commits
This class represents GitCommits.
The reference can be found here
https://docs.github.com/en/rest/reference/git#commits
"""

@@ -54,0 +59,0 @@

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -55,3 +56,7 @@ # This file is part of PyGithub. #

"""
This class represents github apps. The reference can be found here https://docs.github.com/en/rest/reference/apps
This class represents github apps.
The reference can be found here
https://docs.github.com/en/rest/reference/apps
"""

@@ -58,0 +63,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,5 +46,7 @@ # This file is part of PyGithub. #

"""
Error handling in PyGithub is done with exceptions. This class is the base of all exceptions raised by PyGithub (but :class:`github.GithubException.BadAttributeException`).
Error handling in PyGithub is done with exceptions. This class is the base of all exceptions raised by PyGithub
(but :class:`github.GithubException.BadAttributeException`).
Some other types of exceptions might be raised by underlying libraries, for example for network-related issues.
"""

@@ -72,3 +75,3 @@

"""
The status returned by the Github API
The status returned by the Github API.
"""

@@ -80,3 +83,3 @@ return self.__status

"""
The (decoded) data returned by the Github API
The (decoded) data returned by the Github API.
"""

@@ -88,3 +91,3 @@ return self.__data

"""
The headers returned by the Github API
The headers returned by the Github API.
"""

@@ -122,3 +125,4 @@ return self.__headers

"""
Exception raised when request is sent with a bad user agent header (when Github API replies with a 403 bad user agent HTML status)
Exception raised when request is sent with a bad user agent header (when Github API replies with a 403 bad user
agent HTML status)
"""

@@ -129,3 +133,4 @@

"""
Exception raised when the rate limit is exceeded (when Github API replies with a 403 rate limit exceeded HTML status)
Exception raised when the rate limit is exceeded (when Github API replies with a 403 rate limit exceeded HTML
status)
"""

@@ -157,3 +162,3 @@

"""
The value returned by Github
The value returned by Github.
"""

@@ -172,3 +177,3 @@ return self.__actualValue

"""
The type PyGithub expected
The type PyGithub expected.
"""

@@ -180,3 +185,3 @@ return self.__expectedType

"""
The exception raised when PyGithub tried to parse the value
The exception raised when PyGithub tried to parse the value.
"""

@@ -188,3 +193,3 @@ return self.__transformationException

"""
Exception raised when Github requires a onetime password for two-factor authentication
Exception raised when Github requires a onetime password for two-factor authentication.
"""

@@ -195,3 +200,3 @@

"""
Exception raised when we can not request an object from Github because the data returned did not include a URL
Exception raised when we can not request an object from Github because the data returned did not include a URL.
"""

@@ -10,2 +10,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 chantra <chantra@users.noreply.github.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -161,4 +162,4 @@ # This file is part of PyGithub. #

def close(self) -> None:
"""
Close connections to the server. Alternatively, use the GithubIntegration object as a context manager:
"""Close connections to the server. Alternatively, use the
GithubIntegration object as a context manager:

@@ -246,5 +247,7 @@ .. code-block:: python

"""
Deprecated by get_repo_installation
Deprecated by get_repo_installation.
:calls: `GET /repos/{owner}/{repo}/installation <https://docs.github.com/en/rest/reference/apps#get-a-repository-installation-for-the-authenticated-app>`
:calls: `GET /repos/{owner}/{repo}/installation
<https://docs.github.com/en/rest/reference/apps#get-a-repository-installation-for-the-authenticated-app>`
"""

@@ -251,0 +254,0 @@ owner = urllib.parse.quote(owner)

@@ -29,2 +29,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -79,3 +80,5 @@ # This file is part of PyGithub. #

Convert an HTTP date to a datetime object.
Raises ValueError for invalid dates.
"""

@@ -93,3 +96,5 @@

Convert an GitHub API timestamps to a datetime object.
Raises ValueError for invalid timestamps.
"""

@@ -429,4 +434,4 @@

"""
Check and update the object with conditional request
:rtype: Boolean value indicating whether the object is changed
Check and update the object with conditional request :rtype: Boolean value indicating whether the object is
changed.
"""

@@ -433,0 +438,0 @@ conditionalRequestHeader = dict()

@@ -7,2 +7,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -61,2 +62,3 @@ # This file is part of PyGithub. #

This can be configured via the `allowed_methods` argument.
"""

@@ -63,0 +65,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,3 +46,7 @@ # This file is part of PyGithub. #

"""
This class represents GitignoreTemplates. The reference can be found here https://docs.github.com/en/rest/reference/gitignore
This class represents GitignoreTemplates.
The reference can be found here
https://docs.github.com/en/rest/reference/gitignore
"""

@@ -48,0 +53,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,3 @@ # This file is part of PyGithub. #

"""
This class represents GitObjects
This class represents GitObjects.
"""

@@ -47,0 +48,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -54,3 +55,7 @@ # This file is part of PyGithub. #

"""
This class represents GitRefs. The reference can be found here https://docs.github.com/en/rest/reference/git#references
This class represents GitRefs.
The reference can be found here
https://docs.github.com/en/rest/reference/git#references
"""

@@ -57,0 +62,0 @@

@@ -36,2 +36,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Wojciech Barczyński <104033489+WojciechBarczynski@users.noreply.github.com>#
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -72,3 +73,7 @@ # This file is part of PyGithub. #

"""
This class represents GitReleases. The reference can be found here https://docs.github.com/en/rest/reference/repos#releases
This class represents GitReleases.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#releases
"""

@@ -255,3 +260,6 @@

) -> github.GitReleaseAsset.GitReleaseAsset:
"""Uploads an asset. Unlike ``upload_asset()`` this method allows you to pass in a file-like object to upload.
"""
Uploads an asset.
Unlike ``upload_asset()`` this method allows you to pass in a file-like object to upload.
Note that this method is more strict and requires you to specify the ``name``, since there's no file name to infer these from.

@@ -261,2 +269,3 @@ :calls: `POST https://<upload_url>/repos/{owner}/{repo}/releases/{release_id}/assets <https://docs.github.com/en/rest/reference/repos#upload-a-release-asset>`_

:param file_size: int, size in bytes of ``file_like``
"""

@@ -263,0 +272,0 @@ assert isinstance(name, str), name

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,7 @@ # This file is part of PyGithub. #

"""
This class represents GitReleaseAssets. The reference can be found here https://docs.github.com/en/rest/reference/repos#releases
This class represents GitReleaseAssets.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#releases
"""

@@ -55,0 +60,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -56,3 +57,7 @@ # This file is part of PyGithub. #

"""
This class represents GitTags. The reference can be found here https://docs.github.com/en/rest/reference/git#tags
This class represents GitTags.
The reference can be found here
https://docs.github.com/en/rest/reference/git#tags
"""

@@ -59,0 +64,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,7 @@ # This file is part of PyGithub. #

"""
This class represents GitTrees. The reference can be found here https://docs.github.com/en/rest/reference/git#trees
This class represents GitTrees.
The reference can be found here
https://docs.github.com/en/rest/reference/git#trees
"""

@@ -55,0 +60,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,3 @@ # This file is part of PyGithub. #

"""
This class represents GitTreeElements
This class represents GitTreeElements.
"""

@@ -47,0 +48,0 @@

@@ -5,2 +5,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Joseph Henrich <crimsonknave@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -40,3 +42,5 @@ # #

This class represents a GlobalAdvisory.
https://docs.github.com/en/rest/security-advisories/global-advisories
"""

@@ -43,0 +47,0 @@

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +54,7 @@ # This file is part of PyGithub. #

"""
This class represents Hooks. The reference can be found here https://docs.github.com/en/rest/reference/repos#webhooks
This class represents Hooks.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#webhooks
"""

@@ -56,0 +61,0 @@

@@ -7,2 +7,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -36,3 +37,3 @@ # This file is part of PyGithub. #

"""
This class represents a Summary of HookDeliveries
This class represents a Summary of HookDeliveries.
"""

@@ -134,3 +135,3 @@

"""
This class represents a HookDeliveryRequest
This class represents a HookDeliveryRequest.
"""

@@ -162,3 +163,3 @@

"""
This class represents a HookDeliveryResponse
This class represents a HookDeliveryResponse.
"""

@@ -190,3 +191,3 @@

"""
This class represents a HookDelivery
This class represents a HookDelivery.
"""

@@ -193,0 +194,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,3 @@ # This file is part of PyGithub. #

"""
This class represents HookDescriptions
This class represents HookDescriptions.
"""

@@ -50,0 +51,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,3 @@ # This file is part of PyGithub. #

"""
This class represents HookResponses
This class represents HookResponses.
"""

@@ -47,0 +48,0 @@

@@ -15,2 +15,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,3 +46,3 @@ # This file is part of PyGithub. #

"""
This class represents InputFileContents
This class represents InputFileContents.
"""

@@ -48,0 +49,0 @@

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -46,3 +47,3 @@ # This file is part of PyGithub. #

"""
This class represents InputGitAuthors
This class represents InputGitAuthors.
"""

@@ -49,0 +50,0 @@

@@ -15,2 +15,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,3 @@ # This file is part of PyGithub. #

"""
This class represents InputGitTreeElements
This class represents InputGitTreeElements.
"""

@@ -47,0 +48,0 @@

@@ -22,2 +22,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -71,3 +72,7 @@ # This file is part of PyGithub. #

"""
This class represents Installations. The reference can be found here https://docs.github.com/en/rest/reference/apps#installations
This class represents Installations.
The reference can be found here
https://docs.github.com/en/rest/reference/apps#installations
"""

@@ -74,0 +79,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -55,3 +56,3 @@ # This file is part of PyGithub. #

"""
This class represents InstallationAuthorizations
This class represents InstallationAuthorizations.
"""

@@ -58,0 +59,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -57,3 +58,7 @@ # This file is part of PyGithub. #

"""
This class represents repository invitations. The reference can be found here https://docs.github.com/en/rest/reference/repos#invitations
This class represents repository invitations.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#invitations
"""

@@ -60,0 +65,0 @@

@@ -38,2 +38,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Malik Shahzad Muzaffar <shahzad.malik.muzaffar@cern.ch> #

@@ -104,3 +106,7 @@ # #

"""
This class represents Issues. The reference can be found here https://docs.github.com/en/rest/reference/issues
This class represents Issues.
The reference can be found here
https://docs.github.com/en/rest/reference/issues
"""

@@ -107,0 +113,0 @@

@@ -25,2 +25,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -62,3 +63,7 @@ # This file is part of PyGithub. #

"""
This class represents IssueComments. The reference can be found here https://docs.github.com/en/rest/reference/issues#comments
This class represents IssueComments.
The reference can be found here
https://docs.github.com/en/rest/reference/issues#comments
"""

@@ -65,0 +70,0 @@

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -56,3 +57,7 @@ # This file is part of PyGithub. #

"""
This class represents IssueEvents. The reference can be found here https://docs.github.com/en/rest/reference/issues#events
This class represents IssueEvents.
The reference can be found here
https://docs.github.com/en/rest/reference/issues#events
"""

@@ -59,0 +64,0 @@

@@ -16,2 +16,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -44,3 +45,3 @@ # This file is part of PyGithub. #

"""
This class represents IssuePullRequests
This class represents IssuePullRequests.
"""

@@ -47,0 +48,0 @@

@@ -22,2 +22,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -51,3 +52,7 @@ # This file is part of PyGithub. #

"""
This class represents Labels. The reference can be found here https://docs.github.com/en/rest/reference/issues#labels
This class represents Labels.
The reference can be found here
https://docs.github.com/en/rest/reference/issues#labels
"""

@@ -54,0 +59,0 @@

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,7 @@ # This file is part of PyGithub. #

"""
This class represents Licenses. The reference can be found here https://docs.github.com/en/rest/reference/licenses
This class represents Licenses.
The reference can be found here
https://docs.github.com/en/rest/reference/licenses
"""

@@ -55,0 +60,0 @@

@@ -72,2 +72,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 chantra <chantra@users.noreply.github.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -152,3 +153,6 @@ # This file is part of PyGithub. #

"""
This is the main class you instantiate to access the Github API v3. Optional parameters allow different authentication methods.
This is the main class you instantiate to access the Github API v3.
Optional parameters allow different authentication methods.
"""

@@ -257,4 +261,4 @@

def close(self) -> None:
"""
Close connections to the server. Alternatively, use the Github object as a context manager:
"""Close connections to the server. Alternatively, use the Github
object as a context manager:

@@ -317,3 +321,5 @@ .. code-block:: python

:calls: `GET /rate_limit <https://docs.github.com/en/rest/reference/rate-limit>`_
:calls: `GET /rate_limit
<https://docs.github.com/en/rest/reference/rate-limit>`_
"""

@@ -928,4 +934,4 @@ headers, data = self.__requester.requestJsonAndCheck("GET", "/rate_limit")

"""
Creates an object from raw_data previously obtained by :attr:`GithubObject.raw_data`,
and optionally headers previously obtained by :attr:`GithubObject.raw_headers`.
Creates an object from raw_data previously obtained by :attr:`GithubObject.raw_data`, and optionally headers
previously obtained by :attr:`GithubObject.raw_headers`.

@@ -936,2 +942,3 @@ :param klass: the class of the object to create

:rtype: instance of class ``klass``
"""

@@ -945,9 +952,31 @@ if headers is None:

"""
Dumps (pickles) a PyGithub object to a file-like object.
Some effort is made to not pickle sensitive information like the Github credentials used in the :class:`Github` instance.
But NO EFFORT is made to remove sensitive information from the object's attributes.
Dumps (pickles) a PyGithub object to a file-like object. Some effort is made to not pickle sensitive
information like the Github credentials used in the :class:`Github` instance. But NO EFFORT is made to remove
sensitive information from the object's attributes.
:param obj: the object to pickle :param file: the file-like object to pickle to :param protocol: the
`pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-stream-format>`_
:param obj: the object to pickle :param file: the file-like object to pickle to :param protocol: the
`pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
:param obj: the object to pickle :param file: the file-like object to pickle to :param protocol: the
`pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
stream-format>`_ :param obj: the object to pickle :param file: the file-like object to pickle to :param
protocol: the
`pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
:param obj: the object to pickle
:param file: the file-like object to pickle to
:param protocol: the `pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-stream-format>`_
:param protocol: the `pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
stream-format>`_
:param obj: the object to pickle
:param file: the file-like object to pickle to
:param protocol: the `pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
:param obj: the object to pickle
:param file: the file-like object to pickle to
:param protocol: the `pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
stream-format>`_
:param obj: the object to pickle
:param file: the file-like object to pickle to
:param protocol: the `pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-
stream-format>`_
"""

@@ -962,2 +991,3 @@ pickle.dump((obj.__class__, obj.raw_data, obj.raw_headers), file, protocol)

:return: the unpickled object
"""

@@ -964,0 +994,0 @@ return self.create_from_raw_data(*pickle.load(f))

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -58,3 +59,7 @@ # This file is part of PyGithub. #

"""
This class represents Membership of an organization. The reference can be found here https://docs.github.com/en/rest/reference/orgs
This class represents Membership of an organization.
The reference can be found here
https://docs.github.com/en/rest/reference/orgs
"""

@@ -61,0 +66,0 @@

@@ -25,2 +25,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -61,3 +62,7 @@ # This file is part of PyGithub. #

"""
This class represents Migrations. The reference can be found here https://docs.github.com/en/rest/reference/migrations
This class represents Migrations.
The reference can be found here
https://docs.github.com/en/rest/reference/migrations
"""

@@ -64,0 +69,0 @@

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -56,3 +57,7 @@ # This file is part of PyGithub. #

"""
This class represents Milestones. The reference can be found here https://docs.github.com/en/rest/reference/issues#milestones
This class represents Milestones.
The reference can be found here
https://docs.github.com/en/rest/reference/issues#milestones
"""

@@ -59,0 +64,0 @@

@@ -5,2 +5,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 YugoHino <henom06@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -32,3 +33,7 @@ # This file is part of PyGithub. #

"""
This class represents NamedEnterpriseUsers. The reference can be found here https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/license#list-enterprise-consumed-licenses
This class represents NamedEnterpriseUsers.
The reference can be found here
https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/license#list-enterprise-consumed-licenses
"""

@@ -35,0 +40,0 @@

@@ -34,2 +34,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -86,3 +87,7 @@ # This file is part of PyGithub. #

"""
This class represents NamedUsers. The reference can be found here https://docs.github.com/en/rest/reference/users#get-a-user
This class represents NamedUsers.
The reference can be found here
https://docs.github.com/en/rest/reference/users#get-a-user
"""

@@ -89,0 +94,0 @@

@@ -22,2 +22,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -57,3 +58,7 @@ # This file is part of PyGithub. #

"""
This class represents Notifications. The reference can be found here https://docs.github.com/en/rest/reference/activity#notifications
This class represents Notifications.
The reference can be found here
https://docs.github.com/en/rest/reference/activity#notifications
"""

@@ -60,0 +65,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,7 @@ # This file is part of PyGithub. #

"""
This class represents Subjects of Notifications. The reference can be found here https://docs.github.com/en/rest/reference/activity#list-notifications-for-the-authenticated-user
This class represents Subjects of Notifications.
The reference can be found here
https://docs.github.com/en/rest/reference/activity#list-notifications-for-the-authenticated-user
"""

@@ -51,0 +56,0 @@

@@ -56,5 +56,8 @@ ############################ Copyrights and license ############################

# Copyright 2024 Andrii Kezikov <cheshirez@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Mohamed Mostafa <112487260+mohy01@users.noreply.github.com> #
# Copyright 2024 Oskar Jansson <56458534+janssonoskar@users.noreply.github.com>#
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #
# Copyright 2024 Thomas Crowley <15927917+thomascrowley@users.noreply.github.com>#
# #

@@ -129,3 +132,7 @@ # This file is part of PyGithub. #

"""
This class represents Organizations. The reference can be found here https://docs.github.com/en/rest/reference/orgs
This class represents Organizations.
The reference can be found here
https://docs.github.com/en/rest/reference/orgs
"""

@@ -584,5 +591,12 @@

selected_repositories: Opt[list[github.Repository.Repository]] = NotSet,
secret_type: str = "actions",
) -> github.OrganizationSecret.OrganizationSecret:
"""
:calls: `PUT /orgs/{org}/actions/secrets/{secret_name} <https://docs.github.com/en/rest/actions/secrets#create-or-update-an-organization-secret>`_
:param secret_name: string name of the secret
:param unencrypted_value: string plain text value of the secret
:param visibility: string options all or selected
:param selected_repositories: list of repositrories that the secret will be available in
:param secret_type: string options actions or dependabot
:calls: `PUT /orgs/{org}/{secret_type}/secrets/{secret_name} <https://docs.github.com/en/rest/actions/secrets#create-or-update-an-organization-secret>`_
"""

@@ -592,2 +606,5 @@ assert isinstance(secret_name, str), secret_name

assert isinstance(visibility, str), visibility
assert is_optional_list(selected_repositories, github.Repository.Repository), selected_repositories
assert secret_type in ["actions", "dependabot"], "secret_type should be actions or dependabot"
if visibility == "selected":

@@ -600,3 +617,3 @@ assert isinstance(selected_repositories, list) and all(

public_key = self.get_public_key()
public_key = self.get_public_key(secret_type=secret_type)
payload = public_key.encrypt(unencrypted_value)

@@ -609,6 +626,12 @@ put_parameters: dict[str, Any] = {

if is_defined(selected_repositories):
put_parameters["selected_repository_ids"] = [element.id for element in selected_repositories]
# Dependbot and Actions endpoint expects different types
# https://docs.github.com/en/rest/dependabot/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret
# https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret
if secret_type == "actions":
put_parameters["selected_repository_ids"] = [element.id for element in selected_repositories]
if secret_type == "dependabot":
put_parameters["selected_repository_ids"] = [str(element.id) for element in selected_repositories]
self._requester.requestJsonAndCheck(
"PUT", f"{self.url}/actions/secrets/{urllib.parse.quote(secret_name)}", input=put_parameters
"PUT", f"{self.url}/{secret_type}/secrets/{urllib.parse.quote(secret_name)}", input=put_parameters
)

@@ -622,4 +645,4 @@

"visibility": visibility,
"selected_repositories_url": f"{self.url}/actions/secrets/{urllib.parse.quote(secret_name)}/repositories",
"url": f"{self.url}/actions/secrets/{urllib.parse.quote(secret_name)}",
"selected_repositories_url": f"{self.url}/{secret_type}/secrets/{urllib.parse.quote(secret_name)}/repositories",
"url": f"{self.url}/{secret_type}/secrets/{urllib.parse.quote(secret_name)}",
},

@@ -631,5 +654,6 @@ completed=False,

"""
Gets all organization secrets
:param secret_type: string options actions or dependabot
:rtype: :class:`PaginatedList` of :class:`github.OrganizationSecret.OrganizationSecret`
Gets all organization secrets :param secret_type: string options actions or dependabot :rtype:
:class:`PaginatedList` of :class:`github.OrganizationSecret.OrganizationSecret`
"""

@@ -653,2 +677,3 @@ assert secret_type in ["actions", "dependabot"], "secret_type should be actions or dependabot"

assert isinstance(secret_name, str), secret_name
assert secret_type in ["actions", "dependabot"], "secret_type should be actions or dependabot"
return github.OrganizationSecret.OrganizationSecret(

@@ -758,4 +783,4 @@ requester=self._requester,

"""
Gets all organization variables
:rtype: :class:`PaginatedList` of :class:`github.OrganizationVariable.OrganizationVariable`
Gets all organization variables :rtype: :class:`PaginatedList` of
:class:`github.OrganizationVariable.OrganizationVariable`
"""

@@ -1018,8 +1043,9 @@ return PaginatedList(

def get_public_key(self) -> PublicKey:
def get_public_key(self, secret_type: str = "actions") -> PublicKey:
"""
:calls: `GET /orgs/{org}/actions/secrets/public-key <https://docs.github.com/en/rest/reference/actions#get-an-organization-public-key>`_
:calls: `GET /orgs/{org}/{secret_type}/secrets/public-key <https://docs.github.com/en/rest/reference/actions#get-an-organization-public-key>`_
:param secret_type: string options actions or dependabot
:rtype: :class:`github.PublicKey.PublicKey`
"""
headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/actions/secrets/public-key")
headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/{secret_type}/secrets/public-key")
return github.PublicKey.PublicKey(self._requester, headers, data, completed=True)

@@ -1026,0 +1052,0 @@

############################ Copyrights and license ############################
# #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -34,3 +36,7 @@ # #

"""
This class represents a Dependabot alert on an organization. The reference can be found here https://docs.github.com/en/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization
This class represents a Dependabot alert on an organization.
The reference can be found here
https://docs.github.com/en/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization
"""

@@ -37,0 +43,0 @@

@@ -5,2 +5,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Mauricio Alejandro Martínez Pacheco <mauricio.martinez@premise.com>#
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Crowley <15927917+thomascrowley@users.noreply.github.com>#
# #

@@ -36,3 +38,7 @@ # This file is part of PyGithub. #

"""
This class represents a org level GitHub secret. The reference can be found here https://docs.github.com/en/rest/actions/secrets
This class represents a org level GitHub secret.
The reference can be found here
https://docs.github.com/en/rest/actions/secrets
"""

@@ -71,8 +77,10 @@

visibility: str = "all",
secret_type: str = "actions",
) -> bool:
"""
:calls: `PATCH /orgs/{org}/actions/secrets/{variable_name} <https://docs.github.com/en/rest/reference/actions/secrets#update-an-organization-variable>`_
:calls: `PATCH /orgs/{org}/{secret_type}/secrets/{variable_name} <https://docs.github.com/en/rest/reference/actions/secrets#update-an-organization-variable>`_
:param variable_name: string
:param value: string
:param visibility: string
:param secret_type: string options actions or dependabot
:rtype: bool

@@ -82,2 +90,3 @@ """

assert isinstance(visibility, str), visibility
assert secret_type in ["actions", "dependabot"], "secret_type should be actions or dependabot"

@@ -92,3 +101,3 @@ patch_parameters: Dict[str, Any] = {

"PATCH",
f"{self.url}/actions/secrets/{self.name}",
f"{self.url}/{secret_type}/secrets/{self.name}",
input=patch_parameters,

@@ -95,0 +104,0 @@ )

@@ -5,2 +5,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Mauricio Alejandro Martínez Pacheco <mauricio.martinez@premise.com>#
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -36,3 +37,7 @@ # This file is part of PyGithub. #

"""
This class represents a org level GitHub variable. The reference can be found here https://docs.github.com/en/rest/actions/variables
This class represents a org level GitHub variable.
The reference can be found here
https://docs.github.com/en/rest/actions/variables
"""

@@ -39,0 +44,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,6 @@ # This file is part of PyGithub. #

This class represents a popular Path for a GitHub repository.
The reference can be found here https://docs.github.com/en/rest/reference/repos#traffic
The reference can be found here
https://docs.github.com/en/rest/reference/repos#traffic
"""

@@ -50,0 +54,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,3 +46,3 @@ # This file is part of PyGithub. #

"""
This class represents Permissions
This class represents Permissions.
"""

@@ -48,0 +49,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -45,3 +46,3 @@ # This file is part of PyGithub. #

"""
This class represents Plans
This class represents Plans.
"""

@@ -48,0 +49,0 @@

@@ -26,2 +26,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -61,3 +62,7 @@ # This file is part of PyGithub. #

"""
This class represents Projects. The reference can be found here https://docs.github.com/en/rest/reference/projects
This class represents Projects.
The reference can be found here
https://docs.github.com/en/rest/reference/projects
"""

@@ -64,0 +69,0 @@

@@ -25,2 +25,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -66,3 +67,7 @@ # This file is part of PyGithub. #

"""
This class represents Project Cards. The reference can be found here https://docs.github.com/en/rest/reference/projects#cards
This class represents Project Cards.
The reference can be found here
https://docs.github.com/en/rest/reference/projects#cards
"""

@@ -69,0 +74,0 @@

@@ -28,2 +28,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -64,3 +65,7 @@ # This file is part of PyGithub. #

"""
This class represents Project Columns. The reference can be found here https://docs.github.com/en/rest/reference/projects#columns
This class represents Project Columns.
The reference can be found here
https://docs.github.com/en/rest/reference/projects#columns
"""

@@ -67,0 +72,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,5 @@ # This file is part of PyGithub. #

def encrypt(public_key: str, secret_value: str) -> str:
"""Encrypt a Unicode string using the public key."""
"""
Encrypt a Unicode string using the public key.
"""
pk = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder)

@@ -63,4 +66,8 @@ sealed_box = public.SealedBox(pk)

This class represents either an organization public key or a repository public key.
The reference can be found here https://docs.github.com/en/rest/reference/actions#get-an-organization-public-key
or here https://docs.github.com/en/rest/reference/actions#get-a-repository-public-key
The reference can be found here
https://docs.github.com/en/rest/reference/actions#get-an-organization-public-key
or here
https://docs.github.com/en/rest/reference/actions#get-a-repository-public-key
"""

@@ -67,0 +74,0 @@

@@ -47,2 +47,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 vanya20074 <vanya20074@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -118,3 +119,7 @@ # This file is part of PyGithub. #

"""
This class represents PullRequests. The reference can be found here https://docs.github.com/en/rest/reference/pulls
This class represents PullRequests.
The reference can be found here
https://docs.github.com/en/rest/reference/pulls
"""

@@ -121,0 +126,0 @@

@@ -26,2 +26,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -61,3 +62,7 @@ # This file is part of PyGithub. #

"""
This class represents PullRequestComments. The reference can be found here https://docs.github.com/en/rest/reference/pulls#review-comments
This class represents PullRequestComments.
The reference can be found here
https://docs.github.com/en/rest/reference/pulls#review-comments
"""

@@ -64,0 +69,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,7 @@ # This file is part of PyGithub. #

"""
This class represents PullRequestMergeStatuses. The reference can be found here https://docs.github.com/en/rest/reference/pulls#check-if-a-pull-request-has-been-merged
This class represents PullRequestMergeStatuses.
The reference can be found here
https://docs.github.com/en/rest/reference/pulls#check-if-a-pull-request-has-been-merged
"""

@@ -50,0 +55,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +54,3 @@ # This file is part of PyGithub. #

"""
This class represents PullRequestParts
This class represents PullRequestParts.
"""

@@ -56,0 +57,0 @@

@@ -24,2 +24,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -56,3 +58,7 @@ # This file is part of PyGithub. #

"""
This class represents PullRequestReviews. The reference can be found here https://docs.github.com/en/rest/reference/pulls#reviews
This class represents PullRequestReviews.
The reference can be found here
https://docs.github.com/en/rest/reference/pulls#reviews
"""

@@ -59,0 +65,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,7 @@ # This file is part of PyGithub. #

"""
This class represents Rates. The reference can be found here https://docs.github.com/en/rest/reference/rate-limit
This class represents Rates.
The reference can be found here
https://docs.github.com/en/rest/reference/rate-limit
"""

@@ -51,0 +56,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,7 @@ # This file is part of PyGithub. #

"""
This class represents RateLimits. The reference can be found here https://docs.github.com/en/rest/reference/rate-limit
This class represents RateLimits.
The reference can be found here
https://docs.github.com/en/rest/reference/rate-limit
"""

@@ -67,5 +72,3 @@

"""
Rate limit for the non-search-related API
:type: class:`github.Rate.Rate`
Rate limit for the non-search-related API.
"""

@@ -78,4 +81,2 @@ return self._core.value

Rate limit for the Search API.
:type: class:`github.Rate.Rate`
"""

@@ -88,4 +89,2 @@ return self._search.value

(Experimental) Rate limit for GraphQL API, use with caution.
:type: class:`github.Rate.Rate`
"""

@@ -92,0 +91,0 @@ return self._graphql.value

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -57,3 +58,7 @@ # This file is part of PyGithub. #

"""
This class represents Reactions. The reference can be found here https://docs.github.com/en/rest/reference/reactions
This class represents Reactions.
The reference can be found here
https://docs.github.com/en/rest/reference/reactions
"""

@@ -60,0 +65,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,6 @@ # This file is part of PyGithub. #

This class represents a popylar Referrer for a GitHub repository.
The reference can be found here https://docs.github.com/en/rest/reference/repos#traffic
The reference can be found here
https://docs.github.com/en/rest/reference/repos#traffic
"""

@@ -50,0 +54,0 @@

@@ -8,2 +8,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -49,3 +51,6 @@ # #

This class represents a RepositoryAdvisory.
The reference can be found here https://docs.github.com/en/rest/security-advisories/repository-advisories
The reference can be found here
https://docs.github.com/en/rest/security-advisories/repository-advisories
"""

@@ -153,4 +158,6 @@

Offers credit to a user for a vulnerability in a repository.
Unless you are giving credit to yourself, the user having credit offered will need to explicitly accept the credit.
:calls: `PATCH /repos/{owner}/{repo}/security-advisories/:advisory_id <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
"""

@@ -165,5 +172,7 @@ self.offer_credits([{"login": login_or_user, "type": credit_type}])

Offers credit to a list of users for a vulnerability in a repository.
Unless you are giving credit to yourself, the user having credit offered will need to explicitly accept the credit.
:calls: `PATCH /repos/{owner}/{repo}/security-advisories/:advisory_id <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
:param credited: iterable of dict with keys "login" and "type"
"""

@@ -282,3 +291,5 @@ assert isinstance(credited, Iterable), credited

Accepts the advisory reported from an external reporter via private vulnerability reporting.
:calls: `PATCH /repos/{owner}/{repo}/security-advisories/:advisory_id <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
"""

@@ -296,3 +307,5 @@ patch_parameters = {"state": "draft"}

Publishes the advisory.
:calls: `PATCH /repos/{owner}/{repo}/security-advisories/:advisory_id <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
"""

@@ -310,3 +323,5 @@ patch_parameters = {"state": "published"}

Requests a CVE for the advisory.
:calls: `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve <https://docs.github.com/en/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory>`_
"""

@@ -321,3 +336,5 @@ self._requester.requestJsonAndCheck(

Closes the advisory.
:calls: `PATCH /repos/{owner}/{repo}/security-advisories/:advisory_id <https://docs.github.com/en/rest/security-advisories/repository-advisories>`
"""

@@ -324,0 +341,0 @@ patch_parameters = {"state": "closed"}

@@ -25,2 +25,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +54,7 @@ # This file is part of PyGithub. #

"""
This class represents RepositoryKeys. The reference can be found here https://docs.github.com/en/rest/reference/repos#deploy-keys
This class represents RepositoryKeys.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#deploy-keys
"""

@@ -56,0 +61,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -53,3 +54,6 @@ # This file is part of PyGithub. #

This class represents repository preferences.
The reference can be found here https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#update-repository-preferences-for-check-suites
The reference can be found here
https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#update-repository-preferences-for-check-suites
"""

@@ -56,0 +60,0 @@

@@ -56,2 +56,3 @@ ############################ Copyrights and license ############################

# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -348,4 +349,3 @@ # This file is part of PyGithub. #

"""
Update current frame with response
Current frame index will be attached to responseHeader
Update current frame with response Current frame index will be attached to responseHeader.
"""

@@ -488,5 +488,4 @@ if self.DEBUG_FLAG: # pragma no branch (Flag always set in tests)

"""
Returns arguments required to recreate this Requester with Requester.__init__, as well as
with MainClass.__init__ and GithubIntegration.__init__.
:return:
Returns arguments required to recreate this Requester with Requester.__init__, as well as with
MainClass.__init__ and GithubIntegration.__init__.
"""

@@ -515,2 +514,6 @@ return dict(

@property
def scheme(self) -> str:
return self.__scheme
@property
def hostname(self) -> str:

@@ -520,2 +523,8 @@ return self.__hostname

@property
def hostname_and_port(self) -> str:
if self.__port is None:
return self.hostname
return f"{self.hostname}:{self.__port}"
@property
def auth(self) -> Optional["Auth"]:

@@ -527,4 +536,6 @@ return self.__auth

Create a new requester instance with identical configuration but the given authentication method.
:param auth: authentication method
:return: new Requester implementation
"""

@@ -926,3 +937,3 @@ kwargs = self.kwargs

], o.hostname
assert o.path.startswith((self.__prefix, self.__graphql_prefix, "/api/")), o.path
assert o.path.startswith((self.__prefix, self.__graphql_prefix, "/api/", "/login/oauth")), o.path
assert o.port == self.__port, o.port

@@ -929,0 +940,0 @@ url = o.path

@@ -23,2 +23,4 @@ ############################ Copyrights and license ############################

# Copyright 2024 Benjamin K <53038537+treee111@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -58,3 +60,7 @@ # This file is part of PyGithub. #

"""
This class represents Required Pull Request Reviews. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-pull-request-review-protection
This class represents Required Pull Request Reviews.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-pull-request-review-protection
"""

@@ -61,0 +67,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -49,3 +50,7 @@ # This file is part of PyGithub. #

"""
This class represents Required Status Checks. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-status-checks-protection
This class represents Required Status Checks.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-status-checks-protection
"""

@@ -52,0 +57,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,7 @@ # This file is part of PyGithub. #

"""
This class represents a GitHub secret. The reference can be found here https://docs.github.com/en/rest/actions/secrets
This class represents a GitHub secret.
The reference can be found here
https://docs.github.com/en/rest/actions/secrets
"""

@@ -50,0 +55,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,4 +48,7 @@ # This file is part of PyGithub. #

"""
This class represents Self-hosted GitHub Actions Runners. The reference can be found at
This class represents Self-hosted GitHub Actions Runners.
The reference can be found at
https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#self-hosted-runners
"""

@@ -51,0 +55,0 @@

@@ -13,2 +13,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -43,3 +44,7 @@ # This file is part of PyGithub. #

"""
This class represents SourceImports. The reference can be found here https://docs.github.com/en/rest/reference/migrations#source-imports
This class represents SourceImports.
The reference can be found here
https://docs.github.com/en/rest/reference/migrations#source-imports
"""

@@ -46,0 +51,0 @@

@@ -22,2 +22,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -56,3 +57,7 @@ # This file is part of PyGithub. #

"""
This class represents Stargazers. The reference can be found here https://docs.github.com/en/rest/reference/activity#starring
This class represents Stargazers.
The reference can be found here
https://docs.github.com/en/rest/reference/activity#starring
"""

@@ -59,0 +64,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,6 @@ # This file is part of PyGithub. #

This class represents statistics of StatsCodeFrequencies.
The reference can be found here https://docs.github.com/en/rest/metrics/statistics?apiVersion=2022-11-28#get-the-weekly-commit-activity
The reference can be found here
https://docs.github.com/en/rest/metrics/statistics?apiVersion=2022-11-28#get-the-weekly-commit-activity
"""

@@ -51,0 +55,0 @@

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,7 @@ # This file is part of PyGithub. #

"""
This class represents StatsCommitActivities. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-the-last-year-of-commit-activity
This class represents StatsCommitActivities.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-the-last-year-of-commit-activity
"""

@@ -50,0 +55,0 @@

@@ -16,2 +16,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,7 @@ # This file is part of PyGithub. #

"""
This class represents StatsContributors. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-all-contributor-commit-activity
This class represents StatsContributors.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-all-contributor-commit-activity
"""

@@ -51,0 +56,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,7 @@ # This file is part of PyGithub. #

"""
This class represents StatsParticipations. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-the-weekly-commit-count
This class represents StatsParticipations.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-the-weekly-commit-count
"""

@@ -51,0 +56,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -47,3 +48,7 @@ # This file is part of PyGithub. #

"""
This class represents StatsPunchCards. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-the-hourly-commit-count-for-each-day
This class represents StatsPunchCards.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#get-the-hourly-commit-count-for-each-day
"""

@@ -54,3 +59,5 @@

def get(self, day: int, hour: int) -> int:
"""Get a specific element"""
"""
Get a specific element.
"""
return self._dict[(day, hour)]

@@ -57,0 +64,0 @@

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -54,3 +55,7 @@ # This file is part of PyGithub. #

"""
This class represents Tags. The reference can be found here https://docs.github.com/en/rest/reference/repos#list-repository-tags
This class represents Tags.
The reference can be found here
https://docs.github.com/en/rest/reference/repos#list-repository-tags
"""

@@ -57,0 +62,0 @@

@@ -42,2 +42,4 @@ ############################ Copyrights and license ############################

# Copyright 2024 Andrii Kezikov <cheshirez@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -90,3 +92,7 @@ # This file is part of PyGithub. #

"""
This class represents Teams. The reference can be found here https://docs.github.com/en/rest/reference/teams
This class represents Teams.
The reference can be found here
https://docs.github.com/en/rest/reference/teams
"""

@@ -93,0 +99,0 @@

@@ -24,2 +24,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -56,3 +57,7 @@ # This file is part of PyGithub. #

"""
This class represents TeamDiscussions. The reference can be found here https://docs.github.com/en/rest/reference/teams#discussions
This class represents TeamDiscussions.
The reference can be found here
https://docs.github.com/en/rest/reference/teams#discussions
"""

@@ -59,0 +64,0 @@

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -56,3 +57,7 @@ # This file is part of PyGithub. #

"""
This class represents IssueTimelineEvents. The reference can be found here https://docs.github.com/en/rest/reference/issues#timeline
This class represents IssueTimelineEvents.
The reference can be found here
https://docs.github.com/en/rest/reference/issues#timeline
"""

@@ -59,0 +64,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -52,3 +53,7 @@ # This file is part of PyGithub. #

"""
This class represents IssueTimelineEventSource. The reference can be found here https://docs.github.com/en/rest/reference/issues#timeline
This class represents IssueTimelineEventSource.
The reference can be found here
https://docs.github.com/en/rest/reference/issues#timeline
"""

@@ -55,0 +60,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,7 @@ # This file is part of PyGithub. #

"""
This class represents UserKeys. The reference can be found here https://docs.github.com/en/rest/reference/users#keys
This class represents UserKeys.
The reference can be found here
https://docs.github.com/en/rest/reference/users#keys
"""

@@ -51,0 +56,0 @@

@@ -6,2 +6,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Mauricio Alejandro Martínez Pacheco <mauricio.martinez@premise.com>#
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -36,3 +37,7 @@ # This file is part of PyGithub. #

"""
This class represents a GitHub variable. The reference can be found here https://docs.github.com/en/rest/actions/variables
This class represents a GitHub variable.
The reference can be found here
https://docs.github.com/en/rest/actions/variables
"""

@@ -39,0 +44,0 @@

@@ -19,2 +19,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,6 @@ # This file is part of PyGithub. #

This class represents a popular Path for a GitHub repository.
The reference can be found here https://docs.github.com/en/rest/reference/repos#traffic
The reference can be found here
https://docs.github.com/en/rest/reference/repos#traffic
"""

@@ -51,0 +55,0 @@

@@ -23,2 +23,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 sd-kialo <138505487+sd-kialo@users.noreply.github.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -60,3 +61,7 @@ # This file is part of PyGithub. #

"""
This class represents Workflows. The reference can be found here https://docs.github.com/en/rest/reference/actions#workflows
This class represents Workflows.
The reference can be found here
https://docs.github.com/en/rest/reference/actions#workflows
"""

@@ -63,0 +68,0 @@

@@ -7,2 +7,4 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Xavi Vega <xabi1309@gmail.com> #
# #

@@ -39,3 +41,7 @@ # This file is part of PyGithub. #

"""
This class represents Workflow Jobs. The reference can be found here https://docs.github.com/en/rest/reference/actions#workflow-jobs
This class represents Workflow Jobs.
The reference can be found here
https://docs.github.com/en/rest/reference/actions#workflow-jobs
"""

@@ -47,9 +53,17 @@

self._conclusion: Attribute[str] = NotSet
self._created_at: Attribute[datetime] = NotSet
self._head_branch: Attribute[str] = NotSet
self._head_sha: Attribute[str] = NotSet
self._html_url: Attribute[str] = NotSet
self._id: Attribute[int] = NotSet
self._labels: Attribute[list[str]] = NotSet
self._name: Attribute[str] = NotSet
self._node_id: Attribute[str] = NotSet
self._run_attempt: Attribute[int] = NotSet
self._run_id: Attribute[int] = NotSet
self._run_url: Attribute[str] = NotSet
self._runner_group_id: Attribute[int] = NotSet
self._runner_group_name: Attribute[str] = NotSet
self._runner_id: Attribute[int] = NotSet
self._runner_name: Attribute[str] = NotSet
self._started_at: Attribute[datetime] = NotSet

@@ -59,2 +73,3 @@ self._status: Attribute[str] = NotSet

self._url: Attribute[str] = NotSet
self._workflow_name: Attribute[str] = NotSet

@@ -80,2 +95,12 @@ def __repr__(self) -> str:

@property
def created_at(self) -> datetime:
self._completeIfNotSet(self._created_at)
return self._created_at.value
@property
def head_branch(self) -> str:
self._completeIfNotSet(self._head_branch)
return self._head_branch.value
@property
def head_sha(self) -> str:

@@ -96,2 +121,7 @@ self._completeIfNotSet(self._head_sha)

@property
def labels(self) -> list[str]:
self._completeIfNotSet(self._labels)
return self._labels.value
@property
def name(self) -> str:

@@ -107,2 +137,7 @@ self._completeIfNotSet(self._name)

@property
def run_attempt(self) -> int:
self._completeIfNotSet(self._run_attempt)
return self._run_attempt.value
@property
def run_id(self) -> int:

@@ -118,2 +153,22 @@ self._completeIfNotSet(self._run_id)

@property
def runner_group_id(self) -> int:
self._completeIfNotSet(self._runner_group_id)
return self._runner_group_id.value
@property
def runner_group_name(self) -> str:
self._completeIfNotSet(self._runner_group_name)
return self._runner_group_name.value
@property
def runner_id(self) -> int:
self._completeIfNotSet(self._runner_id)
return self._runner_id.value
@property
def runner_name(self) -> str:
self._completeIfNotSet(self._runner_name)
return self._runner_name.value
@property
def started_at(self) -> datetime:

@@ -138,2 +193,7 @@ self._completeIfNotSet(self._started_at)

@property
def workflow_name(self) -> str:
self._completeIfNotSet(self._workflow_name)
return self._workflow_name.value
def logs_url(self) -> str:

@@ -150,2 +210,6 @@ headers, _ = self._requester.requestBlobAndCheck("GET", f"{self.url}/logs")

self._conclusion = self._makeStringAttribute(attributes["conclusion"])
if "created_at" in attributes: # pragma no branch
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
if "head_branch" in attributes: # pragma no branch
self._head_branch = self._makeStringAttribute(attributes["head_branch"])
if "head_sha" in attributes: # pragma no branch

@@ -157,2 +221,4 @@ self._head_sha = self._makeStringAttribute(attributes["head_sha"])

self._id = self._makeIntAttribute(attributes["id"])
if "labels" in attributes: # pragma no branch
self._labels = self._makeListOfStringsAttribute(attributes["labels"])
if "name" in attributes: # pragma no branch

@@ -162,2 +228,4 @@ self._name = self._makeStringAttribute(attributes["name"])

self._node_id = self._makeStringAttribute(attributes["node_id"])
if "run_attempt" in attributes: # pragma no branch
self._run_attempt = self._makeIntAttribute(attributes["run_attempt"])
if "run_id" in attributes: # pragma no branch

@@ -167,2 +235,10 @@ self._run_id = self._makeIntAttribute(attributes["run_id"])

self._run_url = self._makeStringAttribute(attributes["run_url"])
if "runner_group_id" in attributes: # pragma no branch
self._runner_group_id = self._makeIntAttribute(attributes["runner_group_id"])
if "runner_group_name" in attributes: # pragma no branch
self._runner_group_name = self._makeStringAttribute(attributes["runner_group_name"])
if "runner_id" in attributes: # pragma no branch
self._runner_id = self._makeIntAttribute(attributes["runner_id"])
if "runner_name" in attributes: # pragma no branch
self._runner_name = self._makeStringAttribute(attributes["runner_name"])
if "started_at" in attributes: # pragma no branch

@@ -176,1 +252,3 @@ self._started_at = self._makeDatetimeAttribute(attributes["started_at"])

self._url = self._makeStringAttribute(attributes["url"])
if "workflow_name" in attributes: # pragma no branch
self._workflow_name = self._makeStringAttribute(attributes["workflow_name"])

@@ -13,2 +13,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -59,3 +60,7 @@ # This file is part of PyGithub. #

"""
This class represents Workflow Runs. The reference can be found here https://docs.github.com/en/rest/reference/actions#workflow-runs
This class represents Workflow Runs.
The reference can be found here
https://docs.github.com/en/rest/reference/actions#workflow-runs
"""

@@ -62,0 +67,0 @@

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Trim21 <trim21.me@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -48,3 +49,7 @@ # This file is part of PyGithub. #

"""
This class represents steps in a Workflow Job. The reference can be found here https://docs.github.com/en/rest/reference/actions#workflow-jobs
This class represents steps in a Workflow Job.
The reference can be found here
https://docs.github.com/en/rest/reference/actions#workflow-jobs
"""

@@ -51,0 +56,0 @@

Metadata-Version: 2.1
Name: PyGithub
Version: 2.2.0
Version: 2.3.0
Summary: Use the full Github API v3

@@ -5,0 +5,0 @@ Author-email: Vincent Jacques <vincent@vincent-jacques.net>

Metadata-Version: 2.1
Name: PyGithub
Version: 2.2.0
Version: 2.3.0
Summary: Use the full Github API v3

@@ -5,0 +5,0 @@ Author-email: Vincent Jacques <vincent@vincent-jacques.net>

@@ -331,2 +331,3 @@ .git-blame-ignore-revs

tests/conftest.py
tests/ReplayData/ApplicationOAuth.testEnterpriseGetAccessToken.txt
tests/ReplayData/ApplicationOAuth.testGetAccessToken.txt

@@ -774,2 +775,5 @@ tests/ReplayData/ApplicationOAuth.testGetAccessTokenBadCode.txt

tests/ReplayData/Organization.testAddMembersDefaultRole.txt
tests/ReplayData/Organization.testCreateActionsSecret.txt
tests/ReplayData/Organization.testCreateDependabotSecret.txt
tests/ReplayData/Organization.testCreateDependabotSecretSelected.txt
tests/ReplayData/Organization.testCreateFork.txt

@@ -784,3 +788,2 @@ tests/ReplayData/Organization.testCreateHookWithAllParameters.txt

tests/ReplayData/Organization.testCreateRepositoryWithAutoInit.txt
tests/ReplayData/Organization.testCreateSecret.txt
tests/ReplayData/Organization.testCreateSecretSelected.txt

@@ -827,2 +830,4 @@ tests/ReplayData/Organization.testCreateTeam.txt

tests/ReplayData/Organization.testMembers.txt
tests/ReplayData/Organization.testOrgGetSecretAssertion.txt
tests/ReplayData/Organization.testOrgSecretEdit.txt
tests/ReplayData/Organization.testOrgVariable.txt

@@ -984,2 +989,3 @@ tests/ReplayData/Organization.testOutsideCollaborators.txt

tests/ReplayData/Repository.setUp.txt
tests/ReplayData/Repository.testAddToCollaboratorsCustomRole.txt
tests/ReplayData/Repository.testAssignees.txt

@@ -1004,2 +1010,3 @@ tests/ReplayData/Repository.testBadSubscribePubSubHubbub.txt

tests/ReplayData/Repository.testCreateGitRelease.txt
tests/ReplayData/Repository.testCreateGitReleaseGenerateReleaseNotes.txt
tests/ReplayData/Repository.testCreateGitReleaseWithAllArguments.txt

@@ -1024,4 +1031,5 @@ tests/ReplayData/Repository.testCreateGitTag.txt

tests/ReplayData/Repository.testCreatePullFromIssue.txt
tests/ReplayData/Repository.testCreateRepoActionsSecret.txt
tests/ReplayData/Repository.testCreateRepoDependabotSecret.txt
tests/ReplayData/Repository.testCreateRepositoryDispatch.txt
tests/ReplayData/Repository.testCreateSecret.txt
tests/ReplayData/Repository.testCreateSourceImport.txt

@@ -1086,2 +1094,3 @@ tests/ReplayData/Repository.testDelete.txt

tests/ReplayData/Repository.testGetWorkflowRuns.txt
tests/ReplayData/Repository.testGetWorkflowRunsCreated.txt
tests/ReplayData/Repository.testGetWorkflows.txt

@@ -1099,2 +1108,3 @@ tests/ReplayData/Repository.testLegacySearchIssues.txt

tests/ReplayData/Repository.testReplaceTopics.txt
tests/ReplayData/Repository.testRepoGetSecretAssertion.txt
tests/ReplayData/Repository.testRepoSecrets.txt

@@ -1189,2 +1199,3 @@ tests/ReplayData/Repository.testRepoVariable.txt

tests/ReplayData/Workflow.testCreateDispatchWithTag.txt
tests/ReplayData/Workflow.testGetRunsWithCreated.txt
tests/ReplayData/Workflow.testGetRunsWithHeadSha.txt

@@ -1191,0 +1202,0 @@ tests/ReplayData/Workflow.testGetRunsWithNoArguments.txt

@@ -49,2 +49,5 @@ [build-system]

[tool.setuptools]
packages = ["github"]
[tool.setuptools.package-data]

@@ -68,2 +71,11 @@ github = ["py.typed", '*.pyi']

[tool.docformatter]
recursive = true
# some docstring start with r"""
wrap-summaries = 119
wrap-descriptions = 120
blank = true
pre-summary-newline = true
make-summary-multi-line = true
[tool.codespell]

@@ -70,0 +82,0 @@ skip = 'tests/*'

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 chantra <chantra@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# #

@@ -53,2 +54,4 @@ # This file is part of PyGithub. #

self.app = self.g.get_oauth_application(self.CLIENT_ID, self.CLIENT_SECRET)
self.ent_gh = github.Github(base_url="http://my.enterprise.com/path/to/github")
self.ent_app = self.ent_gh.get_oauth_application(self.CLIENT_ID, self.CLIENT_SECRET)

@@ -83,2 +86,41 @@ def testLoginURL(self):

def testEnterpriseSupport(self):
requester = self.ent_gh._Github__requester
self.assertEqual(requester.scheme, "http")
self.assertEqual(requester.hostname, "my.enterprise.com")
self.assertEqual(requester.hostname_and_port, "my.enterprise.com")
self.assertEqual(self.ent_app.get_oauth_url("auth"), "http://my.enterprise.com/login/oauth/auth")
gh_w_port = github.Github(
base_url="http://my.enterprise.com:443/path/to/github"
)._Github__requester.hostname_and_port
self.assertEqual(gh_w_port, "my.enterprise.com:443")
def testEnterpriseLoginURL(self):
BASE_URL = "http://my.enterprise.com/login/oauth/authorize"
sample_uri = "https://myapp.com/some/path"
sample_uri_encoded = "https%3A%2F%2Fmyapp.com%2Fsome%2Fpath"
self.assertEqual(self.ent_app.get_login_url(), f"{BASE_URL}?client_id={self.CLIENT_ID}")
self.assertTrue(f"redirect_uri={sample_uri_encoded}" in self.ent_app.get_login_url(redirect_uri=sample_uri))
self.assertTrue(f"client_id={self.CLIENT_ID}" in self.ent_app.get_login_url(redirect_uri=sample_uri))
self.assertTrue("state=123abc" in self.ent_app.get_login_url(state="123abc", login="user"))
self.assertTrue("login=user" in self.ent_app.get_login_url(state="123abc", login="user"))
self.assertTrue(f"client_id={self.CLIENT_ID}" in self.ent_app.get_login_url(state="123abc", login="user"))
def testEnterpriseGetAccessToken(self):
access_token = self.ent_app.get_access_token("oauth_code_removed", state="state_removed")
# Test string representation
self.assertEqual(
str(access_token),
'AccessToken(type="bearer", token="acces...", scope="", '
"refresh_token_expires_in=None, refresh_token=None, expires_in=None)",
)
self.assertEqual(access_token.token, "access_token_removed")
self.assertEqual(access_token.type, "bearer")
self.assertEqual(access_token.scope, "")
self.assertIsNone(access_token.expires_in)
self.assertIsNone(access_token.expires_at)
self.assertIsNone(access_token.refresh_token)
self.assertIsNone(access_token.refresh_expires_in)
self.assertIsNone(access_token.refresh_expires_at)
def testGetAccessTokenWithExpiry(self):

@@ -85,0 +127,0 @@ with mock.patch("github.AccessToken.datetime") as dt:

@@ -31,2 +31,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Oskar Jansson <56458534+janssonoskar@users.noreply.github.com>#

@@ -33,0 +34,0 @@ # #

@@ -21,2 +21,3 @@ ############################ Copyrights and license ############################

# Copyright 2024 Benjamin K <53038537+treee111@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# #

@@ -23,0 +24,0 @@ # This file is part of PyGithub. #

@@ -17,2 +17,3 @@ ############################ Copyrights and license ############################

# Copyright 2024 Benjamin K <53038537+treee111@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# #

@@ -19,0 +20,0 @@ # This file is part of PyGithub. #

############################ Copyrights and license ############################
# #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #

@@ -4,0 +5,0 @@ # #

@@ -5,2 +5,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Joseph Henrich <crimsonknave@gmail.com> #
# Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# #

@@ -137,3 +138,5 @@ # This file is part of PyGithub. #

def testNewlyReleased(self):
"""Test an advisory that was freshly released and does not have values for all fields."""
"""
Test an advisory that was freshly released and does not have values for all fields.
"""
self.advisory = self.g.get_global_advisory("GHSA-cx3j-qqxj-9597")

@@ -140,0 +143,0 @@ self.assertListKeyEqual(

@@ -24,2 +24,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Nicolas Schweitzer <nicolas.schweitzer@datadoghq.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Malik Shahzad Muzaffar <shahzad.malik.muzaffar@cern.ch> #

@@ -26,0 +27,0 @@ # #

@@ -40,5 +40,7 @@ ############################ Copyrights and license ############################

# Copyright 2024 Andrii Kezikov <cheshirez@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# Copyright 2024 Mohamed Mostafa <112487260+mohy01@users.noreply.github.com> #
# Copyright 2024 Oskar Jansson <56458534+janssonoskar@users.noreply.github.com>#
# Copyright 2024 Thomas Cooper <coopernetes@proton.me> #
# Copyright 2024 Thomas Crowley <15927917+thomascrowley@users.noreply.github.com>#
# #

@@ -434,9 +436,2 @@ # This file is part of PyGithub. #

@mock.patch("github.PublicKey.encrypt")
def testCreateSecret(self, encrypt):
# encrypt returns a non-deterministic value, we need to mock it so the replay data matches
encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
secret = self.org.create_secret("secret-name", "secret-value", "all")
self.assertIsNotNone(secret)
@mock.patch("github.PublicKey.encrypt")
def testCreateSecretSelected(self, encrypt):

@@ -446,3 +441,10 @@ repos = [self.org.get_repo("TestPyGithub"), self.org.get_repo("FatherBeaver")]

encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
secret = self.org.create_secret("secret-name", "secret-value", "selected", repos)
secret = self.org.create_secret(
secret_name="secret-name",
unencrypted_value="secret-value",
visibility="selected",
secret_type="actions",
selected_repositories=repos,
)
self.assertIsNotNone(secret)

@@ -575,1 +577,59 @@ self.assertEqual(secret.visibility, "selected")

self.assertEqual(len(list(variables)), 1)
@mock.patch("github.PublicKey.encrypt")
def testCreateActionsSecret(self, encrypt):
org = self.g.get_organization("demoorg")
# encrypt returns a non-deterministic value, we need to mock it so the replay data matches
encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
secret = org.create_secret("secret_name", "secret-value", visibility="all")
self.assertIsNotNone(secret)
@mock.patch("github.PublicKey.encrypt")
def testCreateDependabotSecret(self, encrypt):
org = self.g.get_organization("demoorg")
# encrypt returns a non-deterministic value, we need to mock it so the replay data matches
encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
secret = org.create_secret("secret_name", "secret-value", secret_type="dependabot", visibility="all")
self.assertIsNotNone(secret)
def testOrgGetSecretAssertion(self):
org = self.g.get_organization("demoorg")
with self.assertRaises(AssertionError) as exc:
org.get_secret(secret_name="splat", secret_type="supersecret")
self.assertEqual(str(exc.exception), "secret_type should be actions or dependabot")
@mock.patch("github.PublicKey.encrypt")
def testCreateDependabotSecretSelected(self, encrypt):
org = self.g.get_organization("demoorg")
repos = [org.get_repo("demo-repo-1"), org.get_repo("demo-repo-2")]
# encrypt returns a non-deterministic value, we need to mock it so the replay data matches
encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
secret = org.create_secret(
secret_name="SECRET_DEP_NAME",
unencrypted_value="secret-value",
visibility="selected",
secret_type="dependabot",
selected_repositories=repos,
)
self.assertIsNotNone(secret)
self.assertEqual(secret.visibility, "selected")
self.assertEqual(list(secret.selected_repositories), repos)
@mock.patch("github.PublicKey.encrypt")
def testOrgSecretEdit(self, encrypt):
org = self.g.get_organization("demoorg")
repos = [org.get_repo("demo-repo-1"), org.get_repo("demo-repo-2")]
# encrypt returns a non-deterministic value, we need to mock it so the replay data matches
encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
secret = org.create_secret(
secret_name="secret_act_name",
unencrypted_value="secret-value",
visibility="selected",
secret_type="actions",
selected_repositories=repos,
)
with self.assertRaises(AssertionError) as exc:
secret.edit(value="newvalue", secret_type="supersecret")
self.assertEqual(str(exc.exception), "secret_type should be actions or dependabot")

@@ -25,2 +25,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Jirka Borovec <6035284+Borda@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# #

@@ -27,0 +28,0 @@ # This file is part of PyGithub. #

@@ -20,2 +20,3 @@ ############################ Copyrights and license ############################

# Copyright 2024 Benjamin K <53038537+treee111@users.noreply.github.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# #

@@ -22,0 +23,0 @@ # This file is part of PyGithub. #

@@ -30,2 +30,3 @@ ############################ Copyrights and license ############################

# Copyright 2024 Andrii Kezikov <cheshirez@gmail.com> #
# Copyright 2024 Enrico Minack <github@enrico.minack.dev> #
# #

@@ -32,0 +33,0 @@ # This file is part of PyGithub. #

@@ -18,2 +18,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Thomas Burghout <thomas.burghout@nedap.com> #
# Copyright 2024 Benjamin K <53038537+treee111@users.noreply.github.com> #
# #

@@ -103,2 +104,9 @@ # This file is part of PyGithub. #

def testGetRunsWithCreated(self):
self.assertListKeyEqual(
self.workflow.get_runs(created="2022-12-24"),
lambda r: r.id,
[3770390952],
)
def testCreateDispatchWithBranch(self):

@@ -105,0 +113,0 @@ dispatch_inputs = {"logLevel": "Warning", "message": "Log Message"}

@@ -5,2 +5,3 @@ ############################ Copyrights and license ############################

# Copyright 2023 Jeppe Fihl-Pearson <tenzer@tenzer.dk> #
# Copyright 2024 Xavi Vega <xabi1309@gmail.com> #
# #

@@ -83,1 +84,11 @@ # This file is part of PyGithub. #

)
self.assertEqual(self.job.runner_id, 2)
self.assertEqual(self.job.runner_name, "GitHub Actions 2")
self.assertEqual(self.job.runner_group_id, 2)
self.assertEqual(self.job.runner_group_name, "GitHub Actions")
created_at = datetime(2023, 2, 17, 16, 3, 38, tzinfo=timezone.utc)
self.assertEqual(self.job.created_at, created_at)
self.assertEqual(self.job.head_branch, "tz-aware-2")
self.assertEqual(self.job.labels, ["ubuntu-latest"])
self.assertEqual(self.job.run_attempt, 1)
self.assertEqual(self.job.workflow_name, "CI")
https
GET
api.github.com
None
/orgs/BeaverSoftware/actions/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('status', '200 OK'), ('x-ratelimit-remaining', '4978'), ('content-length', '487'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"1dd282b50e691f8f162ef9355dad8771"'), ('date', 'Thu, 10 May 2012 19:03:19 GMT'), ('content-type', 'application/json; charset=utf-8')]
{"key": "u5e1Z25+z8pmgVVt5Pd8k0z/sKpVL1MXYtRAecE4vm8=", "key_id": "568250167242549743"}
https
PUT
api.github.com
None
/orgs/BeaverSoftware/actions/secrets/secret-name
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b", "key_id": "568250167242549743", "visibility": "all"}
201
[('Date', 'Fri, 17 Apr 2020 00:12:33 GMT'), ('Server', 'GitHub.com'), ('Content-Length', '2'), ('Content-Type', 'application/json; charset=utf-8'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4984'), ('X-RateLimit-Reset', '1587085388'), ('X-OAuth-Scopes', 'read:org, repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('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', 'C290:52DA:50234:B404B:5E98F470')]
{}
https
GET
api.github.com
None
/repos/jacquev6/PyGithub/actions/secrets/public-key
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('status', '200 OK'), ('x-ratelimit-remaining', '4978'), ('content-length', '487'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"1dd282b50e691f8f162ef9355dad8771"'), ('date', 'Thu, 10 May 2012 19:03:19 GMT'), ('content-type', 'application/json; charset=utf-8')]
{"key": "u5e1Z25+z8pmgVVt5Pd8k0z/sKpVL1MXYtRAecE4vm8=", "key_id": "568250167242549743"}
https
PUT
api.github.com
None
/repos/jacquev6/PyGithub/actions/secrets/secret-name
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"encrypted_value": "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b", "key_id": "568250167242549743"}
201
[('Date', 'Fri, 17 Apr 2020 00:12:33 GMT'), ('Server', 'GitHub.com'), ('Content-Length', '2'), ('Content-Type', 'application/json; charset=utf-8'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4984'), ('X-RateLimit-Reset', '1587085388'), ('X-OAuth-Scopes', 'read:org, repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('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', 'C290:52DA:50234:B404B:5E98F470')]
{}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display