feat: add prebuild script for building sitemaps for builds #13818
Annotations
3 errors and 2 warnings
build-libs/__tests__/get-latest-content-sha-for-product.test.ts > getLatestContentShaForProduct > fetches the latest SHA for the "consul" repo, then validates the SHA by fetching redirects:
build-libs/fetch-github-file.js#L23
HttpError: API rate limit exceeded for 52.234.38.194. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
❯ node_modules/@octokit/request/dist-src/fetch-wrapper.js:68:27
❯ Module.fetchGithubFile [as default] build-libs/fetch-github-file.js:23:19
❯ build-libs/__tests__/get-latest-content-sha-for-product.test.ts:23:33
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 403, response: { url: 'https://api.github.com/repos/hashicorp/consul/contents/website%2Fredirects.js?ref=33e5727aac81d744f16ede69233b2e5fd95a0b75', status: 403, 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-Reset, X-RateLimit-Used, X-RateLimit-Resource, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset', connection: 'close', 'content-length': '279', 'content-security-policy': 'default-src \'none\'; style-src \'unsafe-inline\'', 'content-type': 'application/json; charset=utf-8', date: 'Tue, 14 Jan 2025 22:09:01 GMT', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'Varnish', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'AC15:3D6E87:2A3444D:2AE3E54:6786E07D', 'x-ratelimit-limit': '60', 'x-ratelimit-remaining': '0', 'x-ratelimit-reset': '1736895532', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '60', 'x-xss-protection': '1; mode=block' }, data: { message: 'API rate limit exceeded for 52.234.38.194. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)', documentation_url: 'https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting' } }, request: { method: 'GET', url: 'https://api.github.com/repos/hashicorp/consul/contents/website%2Fredirects.js?ref=33e5727aac81d744f16ede69233b2e5fd95a0b75', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'octokit-core.js/3.5.1 Mozilla/5.0 (linux) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/24.0.0' }, request: { hook: 'Function<bound bound register>' } }, code: 403, 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-Reset, X-RateLimit-Used, X-RateLimit-Resource, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset', connection: 'close', 'content-length': '279', 'content-security-policy': 'default-src \'none\'; style-src \'unsafe-inline\'', 'content-type': 'application/json; charset=utf-8', date: 'Tue, 14 Jan 2025 22:09:01 GMT', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'Varnish', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'AC15:3D6E87:2A3444D:2AE3E54:6786E07D', 'x-ratelimit-limit': '60', 'x-ratelimit-remaining': '0', 'x-ratelimit-reset': '1736895532', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '60', 'x-xss-protection': '1; mode=block' } }
|
build-libs/__tests__/get-latest-content-sha-for-product.test.ts > getLatestContentShaForProduct > fetches the latest SHA for the "terraform-docs-common" repo, then validates the SHA by fetching redirects:
build-libs/fetch-github-file.js#L23
HttpError: API rate limit exceeded for 52.234.38.194. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
❯ node_modules/@octokit/request/dist-src/fetch-wrapper.js:68:27
❯ Module.fetchGithubFile [as default] build-libs/fetch-github-file.js:23:19
❯ build-libs/__tests__/get-latest-content-sha-for-product.test.ts:23:33
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 403, response: { url: 'https://api.github.com/repos/hashicorp/terraform-docs-common/contents/website%2Fredirects.js?ref=46fddeadecfba55430bfff77a3fef5bd8f285c03', status: 403, 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-Reset, X-RateLimit-Used, X-RateLimit-Resource, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset', connection: 'close', 'content-length': '279', 'content-security-policy': 'default-src \'none\'; style-src \'unsafe-inline\'', 'content-type': 'application/json; charset=utf-8', date: 'Tue, 14 Jan 2025 22:09:02 GMT', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'Varnish', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'AC16:8FD8C:2B6C5D7:2C1BFFA:6786E07E', 'x-ratelimit-limit': '60', 'x-ratelimit-remaining': '0', 'x-ratelimit-reset': '1736895532', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '60', 'x-xss-protection': '1; mode=block' }, data: { message: 'API rate limit exceeded for 52.234.38.194. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)', documentation_url: 'https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting' } }, request: { method: 'GET', url: 'https://api.github.com/repos/hashicorp/terraform-docs-common/contents/website%2Fredirects.js?ref=46fddeadecfba55430bfff77a3fef5bd8f285c03', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'octokit-core.js/3.5.1 Mozilla/5.0 (linux) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/24.0.0' }, request: { hook: 'Function<bound bound register>' } }, code: 403, 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-Reset, X-RateLimit-Used, X-RateLimit-Resource, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset', connection: 'close', 'content-length': '279', 'content-security-policy': 'default-src \'none\'; style-src \'unsafe-inline\'', 'content-type': 'application/json; charset=utf-8', date: 'Tue, 14 Jan 2025 22:09:02 GMT', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'Varnish', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': 'AC16:8FD8C:2B6C5D7:2C1BFFA:6786E07E', 'x-ratelimit-limit': '60', 'x-ratelimit-remaining': '0', 'x-ratelimit-reset': '1736895532', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '60', 'x-xss-protection': '1; mode=block' } }
|
Run Tests 🧪
Process completed with exit code 1.
|
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run Tests 🧪
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|