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

Add full scans feature #118

Merged
merged 21 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
charliegerard committed Jun 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 09494b21e4bd8a881fc81078dd00d24148f3639e
2 changes: 1 addition & 1 deletion lib/commands/scan/create.js
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ import { createDebugLogger } from '../../utils/misc.js'
import { getPackageFilesFullScans } from '../../utils/path-resolve.js'
import { getDefaultKey, setupSdk } from '../../utils/sdk.js'

/** @type {import('../../utils/meow-with-subcommands').CliSubcommand} */
/** @type {import('../../utils/meow-with-subcommands.js').CliSubcommand} */
export const create = {
description: 'Create a scan',
async run (argv, importMeta, { parentName }) {
2 changes: 1 addition & 1 deletion lib/commands/scan/delete.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import { handleApiCall, handleUnsuccessfulApiResponse } from '../../utils/api-he
import { printFlagList } from '../../utils/formatting.js'
import { getDefaultKey, setupSdk } from '../../utils/sdk.js'

/** @type {import('../../utils/meow-with-subcommands').CliSubcommand} */
/** @type {import('../../utils/meow-with-subcommands.js').CliSubcommand} */
export const del = {
description: 'Delete a scan',
async run (argv, importMeta, { parentName }) {
2 changes: 1 addition & 1 deletion lib/commands/scan/index.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import { meowWithSubcommands } from '../../utils/meow-with-subcommands.js'

const description = 'Scans related commands'

/** @type {import('../../utils/meow-with-subcommands').CliSubcommand} */
/** @type {import('../../utils/meow-with-subcommands.js').CliSubcommand} */
export const scan = {
description,
run: async (argv, importMeta, { parentName }) => {
2 changes: 1 addition & 1 deletion lib/commands/scan/list.js
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ import { prepareFlags } from '../../utils/flags.js'
import { printFlagList } from '../../utils/formatting.js'
import { getDefaultKey, setupSdk } from '../../utils/sdk.js'

/** @type {import('../../utils/meow-with-subcommands').CliSubcommand} */
/** @type {import('../../utils/meow-with-subcommands.js').CliSubcommand} */
export const list = {
description: 'List scans for an organization',
async run (argv, importMeta, { parentName }) {
2 changes: 1 addition & 1 deletion lib/commands/scan/metadata.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import { handleApiCall, handleUnsuccessfulApiResponse } from '../../utils/api-he
import { printFlagList } from '../../utils/formatting.js'
import { getDefaultKey, setupSdk } from '../../utils/sdk.js'

/** @type {import('../../utils/meow-with-subcommands').CliSubcommand} */
/** @type {import('../../utils/meow-with-subcommands.js').CliSubcommand} */
export const metadata = {
description: 'Get a scan\'s metadata',
async run (argv, importMeta, { parentName }) {
2 changes: 1 addition & 1 deletion lib/commands/scan/stream.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import { handleApiCall, handleUnsuccessfulApiResponse } from '../../utils/api-he
import { printFlagList } from '../../utils/formatting.js'
import { getDefaultKey, setupSdk } from '../../utils/sdk.js'

/** @type {import('../../utils/meow-with-subcommands').CliSubcommand} */
/** @type {import('../../utils/meow-with-subcommands.js').CliSubcommand} */
export const stream = {
description: 'Stream the output of a scan',
async run (argv, importMeta, { parentName }) {

Unchanged files with check annotations Beta

}
/**
* Resolves package.json and lockfiles from (globbed) input paths, applying relevant ignores

Check warning on line 69 in lib/utils/path-resolve.js

GitHub Actions / Linting / Test (20, ubuntu-latest)

Expected only 0 line after block description
*
* @param {string} cwd The working directory to use when resolving paths
* @param {string[]} inputPaths A list of paths to folders, package.json files and/or recognized lockfiles. Supports globs.