Skip to content

Commit 13a8c13

Browse files
authored
Merge branch 'master' into update/downgradeExtension
2 parents e560ebc + 9dbc497 commit 13a8c13

5 files changed

Lines changed: 13 additions & 5 deletions

File tree

docs/codacy-api/api-tokens.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,20 @@ You can create new account API tokens programmatically [using the Codacy API](ex
2929

3030
1. Click the button **Create API token** under **Account API tokens**.
3131

32-
!!! tip
33-
You can create multiple account API tokens. This can be useful to have a more flexible control by revoking only a specific token.
32+
1. Select an expiration date from the modal options. You can select between a range of 7 days to 90 days, create a custom expiration date, or create a token with no expiration.
33+
34+
![Creating an account API token](images/codacy-api-tokens-account.png)
35+
36+
![Creating an account API token modal](images/codacy-api-tokens-account-modal.png)
37+
38+
!!! tip
39+
You can create multiple account API tokens. This can be useful to have a more flexible control by revoking only a specific token.
40+
41+
When you have tokens created, you can view them inside the tokens table. By hovering a token, you are able to copy its value.
3442

35-
![Creating an account API token](images/codacy-api-tokens-account.png)
43+
![Creating an account API token modal](images/codacy-api-tokens-account-table.png)
3644

37-
To revoke an account API token, click the "X" next to the token. After this, all applications or services using that token to access the Codacy API will fail to authenticate and will receive the reply `{"error":"not found"}`.
45+
To delete an account API token, click the trash icon in the Actions column of the table. After this, all applications or services using that token to access the Codacy API will fail to authenticate and will receive the reply `{"error":"not found"}`.
3846

3947
## Generating and revoking repository API tokens {: id="repository-api-tokens"}
4048

73.6 KB
Loading
41.6 KB
Loading
79.5 KB
Loading

docs/getting-started/integrating-codacy-with-your-git-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Once you've tested out Codacy for a while and you're happy with the level of fee
5959

6060
Follow the instructions from your Git provider to block merging pull requests if they don't pass the Codacy status check:
6161

62-
- **GitHub:** [set Codacy as a required status check](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule)
62+
- **GitHub:** set Codacy as a required status check via [branch protection rules](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule) or [rulesets](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#require-status-checks-to-pass-before-merging)
6363
- **GitLab:** [only allow merge requests to be merged if the pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html#only-allow-merge-requests-to-be-merged-if-the-pipeline-succeeds)
6464
- **Bitbucket:** [configure Bitbucket to prevent a merge with unresolved merge checks](https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/)
6565

0 commit comments

Comments
 (0)