Skip to content

Commit 72ef833

Browse files
authored
fix: Remove references to Account API Token CY-3474 (#344)
* doc: Remove reference to Account API Token from README * fix: Hide reference to API token from CLI help
1 parent 903e2c2 commit 72ef833

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -252,24 +252,6 @@ codacy-analysis-cli analyze \
252252

253253
> In alternative to setting `--project-token` you can define CODACY_PROJECT_TOKEN in the environment.
254254
255-
#### API Token
256-
257-
You can find the project token in:
258-
* `Account -> Access Management`
259-
260-
The username and project name can be retrieved from the URL in Codacy.
261-
262-
```sh
263-
codacy-analysis-cli analyze \
264-
--api-token <PROJECT-TOKEN> \
265-
--username <USERNAME> \
266-
--project <PROJECT-NAME> \
267-
--tool <TOOL-SHORT-NAME> \
268-
--directory <SOURCE-CODE-PATH>
269-
```
270-
271-
> In alternative to setting `--api-token` you can define CODACY_API_TOKEN in the environment.
272-
273255
## Build
274256

275257
### Compile

cli/src/main/scala/com/codacy/analysis/cli/command/CLIApp.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ sealed trait CommandOptions {
106106

107107
final case class APIOptions(@ValueDescription("The project token.")
108108
projectToken: Option[String] = Option.empty,
109-
@ValueDescription("The api token.")
109+
@ValueDescription("The api token.") @Hidden
110110
apiToken: Option[String] = Option.empty,
111-
@ValueDescription("The username.")
111+
@ValueDescription("The username.") @Hidden
112112
username: Option[UserName] = Option.empty,
113-
@ValueDescription("The project name.")
113+
@ValueDescription("The project name.") @Hidden
114114
project: Option[ProjectName] = Option.empty,
115115
@ValueDescription("The codacy api base url.")
116116
codacyApiBaseUrl: Option[String] = Some("https://api.codacy.com"))

0 commit comments

Comments
 (0)