build: prevent ai bots from scraping website #18
Annotations
2 errors
test
Bad credentials
{
name: 'event',
id: '9474909629',
err: {
type: 'RequestError',
message: 'Bad credentials',
stack: 'HttpError: Bad credentials\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:4070:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:34389:18)',
name: 'HttpError',
status: 401,
response: {
url: 'https://api.github.com/repos/kalecream/OldWebBrain/compare/7df92c2428986b066524fdea37cf8f1c582b9cb7...6346cbf6672f8db261a122642c4ca78790594b1b',
status: 401,
headers: {
'access-control-allow-origin': '*',
'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',
connection: 'close',
'content-length': '95',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 12 Jun 2024 00:55:20 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': 'D3C1:4A1AE:E194AA:1763980:6668F1F8',
'x-ratelimit-limit': '60',
'x-ratelimit-remaining': '59',
'x-ratelimit-reset': '1718157320',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '1',
'x-xss-protection': '0'
},
data: {
message: 'Bad credentials',
documentation_url: 'https://docs.github.com/rest',
status: '401'
}
},
request: {
method: 'GET',
url: 'https://api.github.com/repos/kalecream/OldWebBrain/compare/7df92c2428986b066524fdea37cf8f1c582b9cb7...6346cbf6672f8db261a122642c4ca78790594b1b',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.3.0 octokit-core.js/3.6.0 Node.js/20.13.1 (linux; x64)',
authorization: 'token [REDACTED]'
},
request: {}
},
event: {
id: '9474909629',
name: 'pull_request',
payload: {
action: 'opened',
number: 62,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/kalecream/OldWebBrain/issues/62/comments'
},
commits: {
href: 'https://api.github.com/repos/kalecream/OldWebBrain/pulls/62/commits'
},
html: {
href: 'https://github.com/kalecream/OldWebBrain/pull/62'
},
issue: {
href: 'https://api.github.com/repos/kalecream/OldWebBrain/issues/62'
},
review_comment: {
href: 'https://api.github.com/repos/kalecream/OldWebBrain/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/kalecream/OldWebBrain/pulls/62/comments'
},
self: {
href: 'https://api.github.com/repos/kalecream/OldWebBrain/pulls/62'
},
statuses: {
href: 'https://api.github.com/repos/kalecream/OldWebBrain/statuses/6346cbf6672f8db261a122642c4ca78790594b1b'
}
},
active_lock_reason: null,
additions: 463,
assignee: null,
assignees: [],
author_association: 'OWNER',
auto_merge: null,
base: {
label: 'kalecream:master',
ref: 'master',
|
test
HttpError: Bad credentials
at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:4070:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:34389:18)
{
err: {
type: 'AggregateError',
message: '\n' +
' HttpError: Bad credentials\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:4070:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:34389:18)',
stack: 'AggregateError: \n' +
' HttpError: Bad credentials\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:4070:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:34389:18)\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:13376:19',
aggregateErrors: [
{
type: 'RequestError',
message: 'Bad credentials',
stack: 'HttpError: Bad credentials\n' +
' at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:4070:21\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:34389:18)',
name: 'HttpError',
status: 401,
response: {
url: 'https://api.github.com/repos/kalecream/OldWebBrain/compare/7df92c2428986b066524fdea37cf8f1c582b9cb7...6346cbf6672f8db261a122642c4ca78790594b1b',
status: 401,
headers: {
'access-control-allow-origin': '*',
'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',
connection: 'close',
'content-length': '95',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 12 Jun 2024 00:55:20 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': 'D3C1:4A1AE:E194AA:1763980:6668F1F8',
'x-ratelimit-limit': '60',
'x-ratelimit-remaining': '59',
'x-ratelimit-reset': '1718157320',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '1',
'x-xss-protection': '0'
},
data: {
message: 'Bad credentials',
documentation_url: 'https://docs.github.com/rest',
status: '401'
}
},
request: {
method: 'GET',
url: 'https://api.github.com/repos/kalecream/OldWebBrain/compare/7df92c2428986b066524fdea37cf8f1c582b9cb7...6346cbf6672f8db261a122642c4ca78790594b1b',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.3.0 octokit-core.js/3.6.0 Node.js/20.13.1 (linux; x64)',
authorization: 'token [REDACTED]'
},
request: {}
},
event: {
id: '9474909629',
name: 'pull_reque
|