Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .github/workflows/build_executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: poetry run pyinstaller pyinstaller.spec

- name: Test executable
run: ./dist/cycode --version
run: ./dist/cycode version

- name: Sign macOS executable
if: ${{ startsWith(matrix.os, 'macos') }}
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:

- name: Test signed executable
if: ${{ startsWith(matrix.os, 'macos') }}
run: ./dist/cycode --version
run: ./dist/cycode version

- uses: actions/upload-artifact@v3
with:
Expand Down
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,19 +213,19 @@ repos:

The following are the options and commands available with the Cycode CLI application:

| Option | Description |
|--------------------------------------|-------------------------------------------------------------------|
| `-o`, `--output [text\|json\|table]` | Specify the output (`text`/`json`/`table`). The default is `text` |
| `-v`, `--verbose` | Show detailed logs |
| `--version` | Show the version and exit. |
| `--help` | Show options for given command. |

| Command | Description |
|-------------------------------------|-------------|
| [auth](#use-auth-command) | Authenticates your machine to associate CLI with your Cycode account. |
| [configure](#use-configure-command) | Initial command to authenticate your CLI client with Cycode using client ID and client secret. |
| [ignore](#ingoring-scan-results) | Ignore a specific value, path or rule ID |
| [scan](#running-a-scan) | Scan content for secrets/IaC/SCA/SAST violations. You need to specify which scan type: `ci`/`commit_history`/`path`/`repository`/etc |
| Option | Description |
|--------------------------------------|--------------------------------------------------------------------|
| `-o`, `--output [text\|json\|table]` | Specify the output (`text`/`json`/`table`). The default is `text`. |
| `-v`, `--verbose` | Show detailed logs. |
| `--help` | Show options for given command. |

| Command | Description |
|-------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| [auth](#use-auth-command) | Authenticates your machine to associate CLI with your Cycode account. |
| [configure](#use-configure-command) | Initial command to authenticate your CLI client with Cycode using client ID and client secret. |
| [ignore](#ingoring-scan-results) | Ignore a specific value, path or rule ID. |
| [scan](#running-a-scan) | Scan content for secrets/IaC/SCA/SAST violations. You need to specify which scan type: `ci`/`commit_history`/`path`/`repository`/etc. |
| version | Show the version and exit. |

# Running a Scan

Expand Down Expand Up @@ -555,6 +555,7 @@ Ignore rules can be added to ignore specific secret values, specific SHA512 valu

> :warning: **Warning**<br/>
> Adding values to be ignored should be done with careful consideration of the values, paths, and policies to ensure that the scans will pick up true positives.

The following are the options available for the `cycode ignore` command:

| Option | Description |
Expand Down
1 change: 0 additions & 1 deletion cycode/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ def version(context: click.Context) -> None:
help='Characteristic JSON object that lets servers identify the application',
type=str,
)
@click.version_option(__version__, prog_name=PROGRAM_NAME)
@click.pass_context
def main_cli(
context: click.Context, verbose: bool, no_progress_meter: bool, output: str, user_agent: Optional[str]
Expand Down