API tokens are revoked automatically when used in public spaces
プラットフォームの注記: Cloud のみ - This article only applies to Atlassian apps on the クラウド プラットフォーム上のアトラシアン製品にのみ適用されます。
要約
When you create an API token from https://id.atlassian.com/manage-profile/security/api-tokens and use/mention it in a code repository, the API token is revoked after a short while from your profile.
環境
Jira Cloud
原因
The repository where the API token is mentioned is a public repository. Atlassian periodically scans public repositories to identify any tokens from Atlassian accounts and revokes them as a security measure. Tokens directly mentioned in public repositories can be accessed by external users and can be abused, thereby, causing harm to your site data and its performance.
ソリューション
Check your email confirming that it was Atlassian that removed your token. You should see a similar email in your inbox

2. Make your code repository is private or use the API token in a file that is not accessible publicly.
この内容はお役に立ちましたか?