Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get-the-audit-log-stream-key-for-encrypting-secrets #192

Open
gm3dmo opened this issue Nov 28, 2024 · 2 comments
Open

get-the-audit-log-stream-key-for-encrypting-secrets #192

gm3dmo opened this issue Nov 28, 2024 · 2 comments

Comments

@gm3dmo
Copy link
Owner

gm3dmo commented Nov 28, 2024

@gm3dmo
Copy link
Owner Author

gm3dmo commented Nov 28, 2024

./list-audit-log-stream-configurations-for-an-enterprise.sh 
+ curl --fail-with-body --no-progress-meter --write-out '%{stderr}%{header_json}' -H 'X-GitHub-Api-Version: 2022-11-28' -H 'Accept: application/vnd.github.v3+json' -H 'Authorization: Bearer ghp_***' https://api.github.com/enterprises/gm3dmo-enterprise-cloud-testing/audit-log/streams
{
  "message": "API rate limit exceeded for user ID 63502882. If you reach out to GitHub Support for help, please include the request ID CDAF:3E8BD1:CAACC0:EE752D:67481E64 and timestamp 2024-11-28 07:40:20 UTC.",
  "documentation_url": "https://docs.github.com/rest/overview/rate-limits-for-the-rest-api",
  "status": "403"
}
curl: (22) The requested URL returned error: 403
{"date":["Thu, 28 Nov 2024 07:40:20 GMT"],
"content-type":["application/json; charset=utf-8"],
"content-length":["326"],
"x-ratelimit-limit":["15"],
"x-ratelimit-remaining":["0"],
"x-ratelimit-reset":["1732781094"],
"x-ratelimit-used":["15"],
"x-ratelimit-resource":["audit_log_streaming"],
"x-oauth-scopes":["admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, copilot, delete:packages, delete_repo, gist, notifications, project, repo, user, workflow, write:discussion, write:packages"],
"x-accepted-oauth-scopes":["repo"],
"github-authentication-token-expiration":["2024-12-07 14:05:35 UTC"],
"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-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"],
"server":["github.com"],
"x-github-request-id":["CDAF:3E8BD1:CAACC0:EE752D:67481E64"]
}                                                            

@gm3dmo
Copy link
Owner Author

gm3dmo commented Nov 28, 2024

"x-ratelimit-limit":["15"],
"x-ratelimit-remaining":["0"],
"x-ratelimit-reset":["1732781094"],
"x-ratelimit-used":["15"],
"x-ratelimit-resource":["audit_log_streaming"],

not documented here:

https://docs.github.com/en/rest/rate-limit/rate-limit?apiVersion=2022-11-28#get-rate-limit-status-for-the-authenticated-user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant