Skip to content

Commit

Permalink
chore: update version check endpoint url (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger authored Jun 25, 2024
1 parent 8d89b26 commit 19ce08b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ type APIEndpoints struct {
var Endpoints = APIEndpoints{
Version: Endpoint{
HttpMethod: "GET",
Route: "/r/version",
Route: "/api/v1/bearerpublic/version",
},
}
2 changes: 1 addition & 1 deletion e2e/flags/.snapshots/TestMetadataFlags-help-scan
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Scan Flags
--skip-test Disable automatic skipping of test files (default true)

General Flags
--api-key string Use your Bearer API Key to send the report to Bearer.
--api-key string Legacy.
--config-file string Load configuration from the specified path. (default "bearer.yml")
--debug Enable debug logs. Equivalent to --log-level=debug
--disable-version-check Disable Bearer version checking
Expand Down
2 changes: 1 addition & 1 deletion e2e/flags/.snapshots/TestMetadataFlags-scan-help
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Scan Flags
--skip-test Disable automatic skipping of test files (default true)

General Flags
--api-key string Use your Bearer API Key to send the report to Bearer.
--api-key string Legacy.
--config-file string Load configuration from the specified path. (default "bearer.yml")
--debug Enable debug logs. Equivalent to --log-level=debug
--disable-version-check Disable Bearer version checking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Scan Flags
--skip-test Disable automatic skipping of test files (default true)

General Flags
--api-key string Use your Bearer API Key to send the report to Bearer.
--api-key string Legacy.
--config-file string Load configuration from the specified path. (default "bearer.yml")
--debug Enable debug logs. Equivalent to --log-level=debug
--disable-version-check Disable Bearer version checking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Scan Flags
--skip-test Disable automatic skipping of test files (default true)

General Flags
--api-key string Use your Bearer API Key to send the report to Bearer.
--api-key string Legacy.
--config-file string Load configuration from the specified path. (default "bearer.yml")
--debug Enable debug logs. Equivalent to --log-level=debug
--disable-version-check Disable Bearer version checking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Scan Flags
--skip-test Disable automatic skipping of test files (default true)

General Flags
--api-key string Use your Bearer API Key to send the report to Bearer.
--api-key string Legacy.
--config-file string Load configuration from the specified path. (default "bearer.yml")
--debug Enable debug logs. Equivalent to --log-level=debug
--disable-version-check Disable Bearer version checking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Scan Flags
--skip-test Disable automatic skipping of test files (default true)

General Flags
--api-key string Use your Bearer API Key to send the report to Bearer.
--api-key string Legacy.
--config-file string Load configuration from the specified path. (default "bearer.yml")
--debug Enable debug logs. Equivalent to --log-level=debug
--disable-version-check Disable Bearer version checking
Expand Down
6 changes: 3 additions & 3 deletions pkg/flag/general_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ var (
HostFlag = GeneralFlagGroup.add(flagtypes.Flag{
Name: "host",
ConfigName: "host",
Value: "my.bearer.sh",
Usage: "Specify the Host for sending the report.",
Value: "api.cycode.com",
Usage: "Version check hostname.",
DisableInConfig: true,
Hide: true,
})
Expand All @@ -32,7 +32,7 @@ var (
Name: "api-key",
ConfigName: "api-key",
Value: "",
Usage: "Use your Bearer API Key to send the report to Bearer.",
Usage: "Legacy.",
DisableInConfig: true,
})

Expand Down

0 comments on commit 19ce08b

Please sign in to comment.