-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable and disable automated security features
feat: enable and disable automated security features
- Loading branch information
Showing
6 changed files
with
757 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
229 changes: 229 additions & 0 deletions
229
...tomated_security_fixes_enabled_/returns_false_with_automated_security_fixes_disabled.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
{ | ||
"http_interactions": [ | ||
{ | ||
"request": { | ||
"method": "delete", | ||
"uri": "https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/automated-security-fixes", | ||
"body": { | ||
"encoding": "UTF-8", | ||
"base64_string": "e30=\n" | ||
}, | ||
"headers": { | ||
"Accept": [ | ||
"application/vnd.github.v3+json" | ||
], | ||
"User-Agent": [ | ||
"Octokit Ruby Gem 9.1.0" | ||
], | ||
"Content-Type": [ | ||
"application/json" | ||
], | ||
"Authorization": [ | ||
"token <<ACCESS_TOKEN>>" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 204, | ||
"message": "No Content" | ||
}, | ||
"headers": { | ||
"Date": [ | ||
"Thu, 18 Jul 2024 13:41:54 GMT" | ||
], | ||
"X-Oauth-Scopes": [ | ||
"admin:public_key, codespace, gist, read:org, repo" | ||
], | ||
"X-Accepted-Oauth-Scopes": [ | ||
"repo" | ||
], | ||
"X-Oauth-Client-Id": [ | ||
"178c6fc778ccc68e1d6a" | ||
], | ||
"X-Github-Media-Type": [ | ||
"github.v3; format=json" | ||
], | ||
"X-Github-Api-Version-Selected": [ | ||
"2022-11-28" | ||
], | ||
"X-Ratelimit-Limit": [ | ||
"5000" | ||
], | ||
"X-Ratelimit-Remaining": [ | ||
"4894" | ||
], | ||
"X-Ratelimit-Reset": [ | ||
"1721311964" | ||
], | ||
"X-Ratelimit-Used": [ | ||
"106" | ||
], | ||
"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": [ | ||
"DA10:39DB3F:20F911E:3DE6752:66991BA1" | ||
], | ||
"Server": [ | ||
"github.com" | ||
] | ||
}, | ||
"body": { | ||
"encoding": "UTF-8", | ||
"base64_string": "" | ||
} | ||
}, | ||
"recorded_at": "Thu, 18 Jul 2024 13:41:54 GMT" | ||
}, | ||
{ | ||
"request": { | ||
"method": "get", | ||
"uri": "https://api.github.com/repos/<GITHUB_LOGIN>/<GITHUB_TEST_REPOSITORY>/automated-security-fixes", | ||
"body": { | ||
"encoding": "US-ASCII", | ||
"base64_string": "" | ||
}, | ||
"headers": { | ||
"Accept": [ | ||
"application/vnd.github.v3+json" | ||
], | ||
"User-Agent": [ | ||
"Octokit Ruby Gem 9.1.0" | ||
], | ||
"Content-Type": [ | ||
"application/json" | ||
], | ||
"Authorization": [ | ||
"token <<ACCESS_TOKEN>>" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Date": [ | ||
"Thu, 18 Jul 2024 13:41:54 GMT" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Cache-Control": [ | ||
"private, max-age=60, s-maxage=60" | ||
], | ||
"Vary": [ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With" | ||
], | ||
"Etag": [ | ||
"W/\"7a86f4321c1d0f17a11c8d0a1c1105f6bda69697bfd035b8d50a6cda1e17c5a6\"" | ||
], | ||
"X-Oauth-Scopes": [ | ||
"admin:public_key, codespace, gist, read:org, repo" | ||
], | ||
"X-Accepted-Oauth-Scopes": [ | ||
"repo" | ||
], | ||
"X-Oauth-Client-Id": [ | ||
"178c6fc778ccc68e1d6a" | ||
], | ||
"X-Github-Media-Type": [ | ||
"github.v3; format=json" | ||
], | ||
"X-Github-Api-Version-Selected": [ | ||
"2022-11-28" | ||
], | ||
"X-Ratelimit-Limit": [ | ||
"5000" | ||
], | ||
"X-Ratelimit-Remaining": [ | ||
"4891" | ||
], | ||
"X-Ratelimit-Reset": [ | ||
"1721311964" | ||
], | ||
"X-Ratelimit-Used": [ | ||
"109" | ||
], | ||
"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'" | ||
], | ||
"Transfer-Encoding": [ | ||
"chunked" | ||
], | ||
"X-Github-Request-Id": [ | ||
"DA13:209DFA:411CDC6:78D2A89:66991BA2" | ||
], | ||
"Server": [ | ||
"github.com" | ||
] | ||
}, | ||
"body": { | ||
"encoding": "ASCII-8BIT", | ||
"base64_string": "eyJlbmFibGVkIjpmYWxzZSwicGF1c2VkIjpmYWxzZX0=\n" | ||
} | ||
}, | ||
"recorded_at": "Thu, 18 Jul 2024 13:41:54 GMT" | ||
} | ||
], | ||
"recorded_with": "VCR 6.2.0" | ||
} |
Oops, something went wrong.