feat: implement scorecard-classic command #8113
tests.yaml
on: pull_request
build-and-unit
2m 5s
cli-package-test
53s
code-style-check
1m 22s
Annotations
10 errors and 10 warnings
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should parse project URL with different residency:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:243:5
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should use correct auth headers when fetching organization:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:225:5
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return scorecard without plugins when plugin fetch fails:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:211:20
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return scorecard config with plugins when pluginsUrl is set:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:173:20
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return scorecard config without plugins when pluginsUrl is not set:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:133:20
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return undefined when project has no scorecard config:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:100:20
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return undefined when project is not found:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:73:20
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return undefined when organization fetch fails:
packages/cli/src/utils/error.ts#L85
Error: Failed to fetch project: test-project. Status: 404
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:54:20
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return undefined when organization is not found:
packages/cli/src/utils/error.ts#L85
Error: Cannot read properties of undefined (reading 'scorecard')
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:55:3
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:41:20
|
|
packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts > fetchRemoteScorecardAndPlugins > should return undefined when project URL pattern does not match:
packages/cli/src/utils/error.ts#L85
Error: Invalid project URL format: https://example.com/invalid/path
❯ exitWithError packages/cli/src/utils/error.ts:85:9
❯ fetchRemoteScorecardAndPlugins packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts:22:5
❯ packages/cli/src/commands/scorecard-classic/__tests__/fetch-scorecard.test.ts:24:26
|
|
code-style-check:
packages/cli/src/commands/join.ts#L673
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L653
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L336
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L328
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L192
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L59
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/utils.ts#L52
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L21
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L11
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L10
Unexpected any. Specify a different type
|