Skip to content

Commit

Permalink
Updated flag and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sagic-orca committed Oct 1, 2023
1 parent 9ac4c48 commit 527a460
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
| --------------------------- | -------------------- | --------------------------------------------------------------------------------- | ------- | -------- | ------- |
| api_token | | Orca API Token used for Authentication | String | Yes | N/A |
| project_key | my-project-key | Project Key name | String | Yes | N/A |
| path | sub-dir | Path to scan | String | Yes | N/A |
| format | json | Format for displaying the results | String | No | cli |
| path | sub-dir | Path to scan | String | Yes | . |
| format | json | Format for displaying the results | String | No | table |
| output | results/ | Output directory for scan results | String | No | N/A |
| no_color | false | Disable color output | Boolean | No | false |
| exit_code | 10 | Exit code for failed execution due to policy violations | Integer | No | 3 |
Expand All @@ -76,7 +76,7 @@ jobs:
| show_failed_issues_only | n/a | show only failed issues | Boolean | No | false |
| from-commit | n/a | the commit to search *from* | String | No | N/A |
| to-commit | n/a | the commit to search *to* | String | No | N/A |
| disable-git-history-scan | true | flag that indicates that the CLI will not scan git history for secrets | Boolean | No | false |
| disable-git-scan | true | flag that indicates that the CLI will not scan git history for secrets | Boolean | No | false |
| ignore-git-history-baseline | true | forces a full history scan | Boolean | No | false |
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ inputs:
disable_git_scan:
description: "Disable Git scan"
required: false
full_history_scan:
ignore_git_history_baseline:
description: "run full history scan"
required: false
from_commit:
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ function set_secrets_scan_flags() {
if [ "${INPUT_TO_COMMIT}" ]; then
SCAN_FLAGS+=(--to-commit="${INPUT_TO_COMMIT}")
fi
if [ "${INPUT_FULL_HISTORY_SCAN}" ]; then
SCAN_FLAGS+=(--ignore-git-history-baseline="${INPUT_FULL_HISTORY_SCAN}")
if [ "${INPUT_IGNORE_GIT_HISTORY_BASELINE}" ]; then
SCAN_FLAGS+=(--ignore-git-history-baseline="${INPUT_IGNORE_GIT_HISTORY_BASELINE}")
fi
if [ "${INPUT_DISABLE_GIT_SCAN}" ]; then
SCAN_FLAGS+=(--disable-git-scan="${INPUT_DISABLE_GIT_SCAN}")
Expand Down

0 comments on commit 527a460

Please sign in to comment.