Skip to content

Commit fe8fb9f

Browse files
gotbadgerdidroe
andauthored
feat: add option to not process gitignore files (#1803)
* feat: add option to not process gitignore files * docs: update generated doc * chore: update test snapshots * fix: Update pkg/commands/process/orchestrator/worker/worker.go Co-authored-by: David Roe <[email protected]> * docs: rework argument help text --------- Co-authored-by: David Roe <[email protected]>
1 parent f7f4911 commit fe8fb9f

20 files changed

+41
-8
lines changed

docs/_data/bearer_ignore_add.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ synopsis: Add an ignored fingerprint
33
usage: bearer ignore add <fingerprint> [flags]
44
options:
55
- name: api-key
6-
usage: Use your Bearer API Key to send the report to Bearer.
6+
usage: Legacy.
77
environment_variables:
88
- BEARER_API_KEY
99
- name: author

docs/_data/bearer_ignore_migrate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ synopsis: Migrate ignored fingerprints from bearer.yml to ignore file
33
usage: bearer ignore migrate [flags]
44
options:
55
- name: api-key
6-
usage: Use your Bearer API Key to send the report to Bearer.
6+
usage: Legacy.
77
environment_variables:
88
- BEARER_API_KEY
99
- name: config-file

docs/_data/bearer_ignore_remove.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ synopsis: Remove an ignored fingerprint
33
usage: bearer ignore remove <fingerprint> [flags]
44
options:
55
- name: api-key
6-
usage: Use your Bearer API Key to send the report to Bearer.
6+
usage: Legacy.
77
environment_variables:
88
- BEARER_API_KEY
99
- name: config-file

docs/_data/bearer_ignore_show.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ options:
88
environment_variables:
99
- BEARER_ALL
1010
- name: api-key
11-
usage: Use your Bearer API Key to send the report to Bearer.
11+
usage: Legacy.
1212
environment_variables:
1313
- BEARER_API_KEY
1414
- name: config-file

docs/_data/bearer_scan.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ synopsis: Scan a directory or file
33
usage: bearer scan [flags] <path>
44
options:
55
- name: api-key
6-
usage: Use your Bearer API Key to send the report to Bearer.
6+
usage: Legacy.
77
environment_variables:
88
- BEARER_API_KEY
99
- name: config-file
@@ -160,6 +160,11 @@ options:
160160
usage: Specify which severities are included in the report.
161161
environment_variables:
162162
- BEARER_SEVERITY
163+
- name: skip-git-ignore
164+
default_value: "false"
165+
usage: Scan files even if their paths match patterns in .gitignore
166+
environment_variables:
167+
- BEARER_SKIP_GIT_IGNORE
163168
- name: skip-path
164169
default_value: "[]"
165170
usage: |

docs/_data/bearer_version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ synopsis: Print the version
33
usage: bearer version [flags]
44
options:
55
- name: api-key
6-
usage: Use your Bearer API Key to send the report to Bearer.
6+
usage: Legacy.
77
environment_variables:
88
- BEARER_API_KEY
99
- name: config-file

e2e/flags/.snapshots/TestInitCommand

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ scan:
2727
quiet: false
2828
scanner:
2929
- sast
30+
skip-git-ignore: false
3031
skip-path: []
3132
skip-test: true
3233

e2e/flags/.snapshots/TestMetadataFlags-help-scan

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Scan Flags
3737
--parallel int Specify the amount of parallelism to use during the scan
3838
--quiet Suppress non-essential messages
3939
--scanner strings Specify which scanner to use e.g. --scanner=secrets, --scanner=secrets,sast (default [sast])
40+
--skip-git-ignore Scan files even if their paths match patterns in .gitignore
4041
--skip-path strings Specify the comma separated files and directories to skip. Supports * syntax, e.g. --skip-path users/*.go,users/admin.sql
4142
--skip-test Disable automatic skipping of test files (default true)
4243

e2e/flags/.snapshots/TestMetadataFlags-scan-help

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Scan Flags
3737
--parallel int Specify the amount of parallelism to use during the scan
3838
--quiet Suppress non-essential messages
3939
--scanner strings Specify which scanner to use e.g. --scanner=secrets, --scanner=secrets,sast (default [sast])
40+
--skip-git-ignore Scan files even if their paths match patterns in .gitignore
4041
--skip-path strings Specify the comma separated files and directories to skip. Supports * syntax, e.g. --skip-path users/*.go,users/admin.sql
4142
--skip-test Disable automatic skipping of test files (default true)
4243

e2e/flags/.snapshots/TestReportFlagsShouldFail-invalid-context-flag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Scan Flags
3838
--parallel int Specify the amount of parallelism to use during the scan
3939
--quiet Suppress non-essential messages
4040
--scanner strings Specify which scanner to use e.g. --scanner=secrets, --scanner=secrets,sast (default [sast])
41+
--skip-git-ignore Scan files even if their paths match patterns in .gitignore
4142
--skip-path strings Specify the comma separated files and directories to skip. Supports * syntax, e.g. --skip-path users/*.go,users/admin.sql
4243
--skip-test Disable automatic skipping of test files (default true)
4344

0 commit comments

Comments
 (0)