Skip to content

feat(core): Security Headers for Pre-rendered Routes #636

feat(core): Security Headers for Pre-rendered Routes

feat(core): Security Headers for Pre-rendered Routes #636

Triggered via pull request May 3, 2024 10:38
Status Failure
Total duration 1m 22s
Artifacts

ci.yml

on: pull_request
Matrix: ci
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 6 warnings
test/perRoute.test.ts > [nuxt-security] Per-route Configuration > does not set security headers when false: test/perRoute.test.ts#L149
AssertionError: expected 'max-age=15552000; includeSubDomains;' to be null ❯ test/perRoute.test.ts:149:17
test/perRoute.test.ts > [nuxt-security] Per-route Configuration > does not set security headers recursively when false: test/perRoute.test.ts#L187
AssertionError: expected 'max-age=15552000; includeSubDomains;' to be null ❯ test/perRoute.test.ts:187:17
test/perRoute.test.ts > [nuxt-security] Per-route Configuration > does not set security headers for an API route: test/perRoute.test.ts#L686
AssertionError: expected 'max-age=15552000; includeSubDomains;' to be null ❯ test/perRoute.test.ts:686:17
test/perRoute.test.ts > [nuxt-security] Per-route Configuration > does not set security headers for bundled assets: test/perRoute.test.ts#L730
AssertionError: expected 'max-age=15552000; includeSubDomains;' to be null ❯ test/perRoute.test.ts:730:17
test/perRoute.test.ts > [nuxt-security] Per-route Configuration > does not set security headers for public assets: test/perRoute.test.ts#L765
AssertionError: expected 'max-age=15552000; includeSubDomains;' to be null ❯ test/perRoute.test.ts:765:17
ci (ubuntu-latest, 18)
Process completed with exit code 1.
ci (ubuntu-latest, 18)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ci (ubuntu-latest, 18): src/utils.ts#L7
'HeaderName' is defined but never used
ci (ubuntu-latest, 18): src/utils.ts#L7
'OptionKey' is defined but never used
ci (ubuntu-latest, 18): src/utils.ts#L7
'SecurityHeaders' is defined but never used
ci (ubuntu-latest, 18): src/utils.ts#L8
'getNameFromKey' is defined but never used
ci (ubuntu-latest, 18): src/utils.ts#L8
'headerStringFromObject' is defined but never used