You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add links to the existing documentation on how to generate project and account API tokens to help keep the information centralized.
- Add explicit recommendation to store the tokens in environment variables.
See [how to generate a project token](https://docs.codacy.com/codacy-api/api-tokens/#project-api-tokens).
245
+
246
+
> ⚠️ **Warning:** For security reasons we recommend that you store your project API token in the environment variable CODACY_PROJECT_TOKEN instead of setting `--project-token`.
> In alternative to setting `--project-token` you can define CODACY_PROJECT_TOKEN in the environment.
255
-
256
255
#### API Token
257
256
258
-
You can find the project token in:
259
-
*`Account -> Access Management`
257
+
See [how to generate an account API token](https://docs.codacy.com/codacy-api/api-tokens/#account-api-tokens).
258
+
259
+
> ⚠️ **Warning:** For security reasons we recommend that you store your account API token in the environment variable CODACY_API_TOKEN instead of setting `--api-token`.
260
260
261
261
The provider, username, and project name can be retrieved from the URL in Codacy.
262
262
@@ -270,8 +270,6 @@ codacy-analysis-cli analyze \
270
270
--directory <SOURCE-CODE-PATH>
271
271
```
272
272
273
-
> In alternative to setting `--api-token` you can define CODACY_API_TOKEN in the environment.
0 commit comments