Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Edit the trust relationship to add the `sub` field to the validation conditions.

```json{:copy}
"Condition": {
"ForAllValues:StringEquals": {
"StringEquals": {
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com",
"token.actions.githubusercontent.com:sub": "repo:octo-org/octo-repo:ref:refs/heads/octo-branch"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ The security log lists all actions performed within the last 90 days.
| `create` | [新たなリポジトリが作成される](/articles/creating-a-new-repository)ときにトリガーされます。 |
| `destroy` | [リポジトリが削除される](/articles/deleting-a-repository)ときにトリガーされます。{% ifversion fpt or ghec %}
| `disable` | Triggered when a repository is disabled (e.g., for [insufficient funds](/articles/unlocking-a-locked-account)).{% endif %}{% ifversion fpt or ghec %}
| `download_zip` | Triggered when a ZIP or TAR archive of a repository is downloaded. |
| `enable` | リポジトリが再び有効になるときにトリガーされます。{% endif %}
| `remove_member` | {% data variables.product.product_name %}ユーザが[リポジトリのコラボレーターではなくなる](/articles/removing-a-collaborator-from-a-personal-repository)ときにトリガーされます。 |
| `remove_topic` | リポジトリのオーナーがリポジトリからトピックを削除するときにトリガーされます。 |
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Configuring Dependabot version updates
title: Dependabotのバージョンアップデートの設定
intro: '{% data variables.product.prodname_dependabot %} が使用するパッケージを自動的に更新するようにリポジトリを設定できます。'
permissions: 'People with write permissions to a repository can enable or disable {% data variables.product.prodname_dependabot_version_updates %} for the repository.'
redirect_from:
Expand All @@ -18,7 +18,7 @@ topics:
- Repositories
- Dependencies
- Pull requests
shortTitle: Configure version updates
shortTitle: バージョンアップデートの設定
---

<!--Marketing-LINK: From /features/security/software-supply-chain page "About version updates for dependencies".-->
Expand All @@ -35,7 +35,7 @@ shortTitle: Configure version updates

## {% data variables.product.prodname_dependabot_version_updates %} を有効化する

{% data reusables.dependabot.create-dependabot-yml %} For information, see "[Configuration options for the dependabot.yml file](/github/administering-a-repository/configuration-options-for-dependency-updates)."
{% data reusables.dependabot.create-dependabot-yml %} 詳しい情報については「[dependabot.ymlファイルの設定オプション](/github/administering-a-repository/configuration-options-for-dependency-updates)」を参照してください。
1. `version` を追加します。
1. プライベートレジストリに依存関係がある場合、必要に応じて認証情報を含む `registries` セクションを追加します。
1. `updates` セクションを追加し、{% data variables.product.prodname_dependabot %} に監視させるパッケージマネージャーごとにエントリを追加します。
Expand Down Expand Up @@ -88,7 +88,7 @@ updates:

## バージョン更新のステータスを確認する

After you enable version updates, the **Dependabot** tab in the dependency graph for the repository is populated. このタブには、{% data variables.product.prodname_dependabot %} が監視するように設定されているパッケージマネージャーと、{% data variables.product.prodname_dependabot %} が最後に新しいバージョンをチェックした日時が表示されます。
バージョンアップデートを有効にすると、リポジトリの依存関係グラフに**Dependabot** タブが展開されます。 このタブには、{% data variables.product.prodname_dependabot %} が監視するように設定されているパッケージマネージャーと、{% data variables.product.prodname_dependabot %} が最後に新しいバージョンをチェックした日時が表示されます。

![[Repository Insights] タブ、[Dependency graph]、[Dependabot] タブ](/assets/images/help/dependabot/dependabot-tab-view.png)

Expand Down Expand Up @@ -139,4 +139,4 @@ updates:
update-types: ["version-update:semver-patch"]
```

For more information about checking for existing ignore preferences, see "[Configuration options for the dependabot.yml file](/github/administering-a-repository/configuration-options-for-dependency-updates#ignore)."
既存の無視設定の確認に関する詳しい情報については、「[依存関係のdependabot.ymlファイルの設定オプション](/github/administering-a-repository/configuration-options-for-dependency-updates#ignore)」を参照してください。
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ shortTitle: 更新のカスタマイズ
- `open-pull-requests-limit`: バージョン更新のオープンプルリクエストの最大数をデフォルトの 5 件から変更する
- `target-branch`: デフォルトブランチではなく、特定のブランチを対象とするバージョン更新のプルリクエストを開く

For more information about the configuration options, see "[Configuration options for the dependabot.yml file](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates)."
設定オプションに関する詳しい情報については「[dependabot.ymlファイルの設定オプション](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates)」を参照してください。

リポジトリ内の *dependabot.yml* ファイルを更新すると、{% data variables.product.prodname_dependabot %} は新しい設定で即座にチェックを実行します。 数分以内に、[**{% data variables.product.prodname_dependabot %}**] タブに更新された依存関係のリストが表示されます。リポジトリに多くの依存関係がある場合、表示までにさらに時間がかかることがあります。 バージョン更新に関する新しいプルリクエストが表示されることもあります。 詳しい情報については、「[バージョン更新用に設定された依存関係を一覧表示する](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/listing-dependencies-configured-for-version-updates) 」を参照してください。

Expand Down Expand Up @@ -140,4 +140,4 @@ updates:

## その他の例

For more examples, see "[Configuration options for the dependabot.yml file](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates)."
その他の例については「[dependabot.ymlファイルの設定オプション](/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates)」を参照してください。
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Keeping your dependencies updated automatically with Dependabot version updates
intro: 'You can use {% data variables.product.prodname_dependabot %} to automatically keep the dependencies and packages used in your repository updated to the latest version, even when they don’t have any known vulnerabilities.'
title: Dependabotバージョンアップデートで自動的に依存関係を更新し続ける
intro: '{% data variables.product.prodname_dependabot %}を使って、既知の脆弱性がない場合であってもリポジトリで使われている依存関係とパッケージを自動的に最新バージョンに更新し続けることができます。'
allowTitleToDifferFromFilename: true
redirect_from:
- /github/administering-a-repository/keeping-your-dependencies-updated-automatically
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ topics:
- Repositories
- Dependencies
- Pull requests
shortTitle: Use Dependabot with Actions
shortTitle: ActionsとDependabotを利用する
redirect_from:
- /code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions
---
Expand All @@ -30,10 +30,10 @@ redirect_from:

## イベントへの応答

{% data variables.product.prodname_dependabot %} is able to trigger {% data variables.product.prodname_actions %} workflows on its pull requests and comments; however, certain events are treated differently.
{% data variables.product.prodname_dependabot %}は、Pull Requestやコメントの際に{% data variables.product.prodname_actions %}ワークフローをトリガーできます。ただし、特定のイベントは異なる扱いを受けます。

{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5792 %}
For workflows initiated by {% data variables.product.prodname_dependabot %} (`github.actor == "dependabot[bot]"`) using the `pull_request`, `pull_request_review`, `pull_request_review_comment`, `push`, `create`, `deployment`, and `deployment_status` events, the following restrictions apply:
`pull_request`、`pull_request_review`、`pull_request_review_comment`、`push`、`create`、`deployment`、`deployment_status`イベントを使って{% data variables.product.prodname_dependabot %}が起動したワークフロー(`github.actor == "dependabot[bot]"`)には、以下の制限が適用されます:
{% endif %}

- {% ifversion ghes = 3.3 %}`GITHUB_TOKEN` has read-only permissions, unless your administrator has removed restrictions.{% else %}`GITHUB_TOKEN` has read-only permissions by default.{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,40 @@ If {% data variables.product.prodname_dotcom %} blocks a secret that you believe

If you confirm a secret is real and that you intend to fix it later, you should aim to remediate the secret as soon as possible. For example, you might revoke the secret and remove the secret from the repository's commit history. For more information, see "[Removing sensitive data from a repository](/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository)."

When you allow a secret to be pushed, an alert is created in the "Security" tab. The alert is closed and no notifications are sent if you specify that the secret is a false positive or used only in tests. If you specify that the secret is real and that you will fix it later, the security alert remains open and notifications are sent to the author of the commit and repository administrators. For more information, see "[Managing alerts from secret scanning](/code-security/secret-scanning/managing-alerts-from-secret-scanning)."
{% data reusables.secret-scanning.push-protection-allow-secrets-alerts %}

1. Visit the URL returned by {% data variables.product.prodname_dotcom %} when your push was blocked.
![Screenshot showing form with options for unblocking the push of a secret](/assets/images/help/repository/secret-scanning-unblock-form.png)
2. Choose the option that best describes why you should be able to push the secret.
- If the secret is only used in tests and poses no threat, click **It's used in tests**.
- If the detected string is not a secret, click **It's a false positive**.
- If the secret is real but you intend to fix it later, click **I'll fix it later**.
3. Click **Allow me to push this secret**.
4. Reattempt the push on the command line within three hours. If you have not pushed within three hours, you will need to repeat this process.
{% data reusables.secret-scanning.push-protection-choose-allow-secret-options %}
1. Click **Allow me to push this secret**.
2. Reattempt the push on the command line within three hours. If you have not pushed within three hours, you will need to repeat this process.

{% if secret-scanning-push-protection-web-ui %}
## Using secret scanning as a push protection from the web UI

When you use the web UI to attempt to commit a supported secret to a repository or organization with secret scanning as a push protection enabled, {% data variables.product.prodname_dotcom %} will block the commit. You will see a banner at the top of the page with information about the secret's location, and the secret will also be underlined in the file so you can easily find it.

![Screenshot showing commit in web ui blocked because of secret scanning push protection](/assets/images/help/repository/secret-scanning-push-protection-web-ui-commit-blocked-banner.png)

{% data variables.product.prodname_dotcom %} will only display one detected secret at a time in the web UI. If a particular secret has already been detected in the repository and an alert already exists, {% data variables.product.prodname_dotcom %} will not block that secret.

You can remove the secret from the file using the web UI. Once you remove the secret, the banner at the top of the page will change and tell you that you can now commit your changes.

![Screenshot showing commit in web ui allowed after secret fixed](/assets/images/help/repository/secret-scanning-push-protection-web-ui-commit-allowed.png)

### Bypassing push protection for a secret

If {% data variables.product.prodname_dotcom %} blocks a secret that you believe is safe to push, you can allow the secret and specify the reason why it should be allowed. If you confirm a secret is real and that you intend to fix it later, you should aim to remediate the secret as soon as possible.

{% data reusables.secret-scanning.push-protection-allow-secrets-alerts %}

If you confirm a secret is real and that you intend to fix it later, you should aim to remediate the secret as soon as possible.

1. In the banner that appeared at the top of the page when {% data variables.product.prodname_dotcom %} blocked your commit, click **Bypass protection**.
{% data reusables.secret-scanning.push-protection-choose-allow-secret-options %}

![Screenshot showing form with options for unblocking the push of a secret](/assets/images/help/repository/secret-scanning-push-protection-web-ui-allow-secret-options.png)

1. Click **Allow secret**.

{% endif %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: コラボレータ
intro: Collaborators APIを使うと、リポジトリでコラボレータの追加、招待、削除が行えます。
intro: The Collaborators API allows you manage collaborators for a repository.
versions:
fpt: '*'
ghes: '*'
Expand Down
14 changes: 8 additions & 6 deletions translations/ja-JP/content/rest/collaborators/invitations.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 招待
intro: Repository Invitations API を使用すると、他のユーザにリポジトリでコラボレーションするようユーザや外部サービスを招待できます。
title: Repository invitations
allowTitleToDifferFromFilename: true
shortTitle: 招待
intro: The Repository invitations API allows you to view and manage invitations to collaborate on a repository.
versions:
fpt: '*'
ghes: '*'
Expand All @@ -11,10 +13,10 @@ topics:
miniTocMaxHeadingLevel: 3
---

招待されたユーザ (または招待されたユーザを代行する外部サービス) は、招待を受諾または拒否できます。
## About the Repository invitations API

`repo` スコープはコードにも招待にもアクセス権を付与するのに対し、`repo:invite` [OAuth scope](/developers/apps/scopes-for-oauth-apps) は招待のみに絞ってアクセス権を付与し、リポジトリのコードにはアクセス権を付与**しない**ことに注意してください
The Repository invitations API allows you to view and manage invitations to collaborate on a repository. 招待されたユーザ (または招待されたユーザを代行する外部サービス) は、招待を受諾または拒否できます

### ユーザをリポジトリに招待する
To add a user as a collaborator, use the Collaborators API instead. 詳しい情報については「[リポジトリコラボレータを追加する](/rest/collaborators/collaborators#add-a-repository-collaborator)」を参照してください。

コラボレータを追加するには、API エンドポイントを使用します。 詳しい情報については「[リポジトリコラボレータを追加する](/rest/collaborators/collaborators#add-a-repository-collaborator)」を参照してください
`repo` スコープはコードにも招待にもアクセス権を付与するのに対し、`repo:invite` [OAuth scope](/developers/apps/scopes-for-oauth-apps) は招待のみに絞ってアクセス権を付与し、リポジトリのコードにはアクセス権を付与**しない**ことに注意してください
6 changes: 4 additions & 2 deletions translations/ja-JP/content/rest/metrics/community.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: コミュニティ
intro: ''
title: Community metrics
shortTitle: コミュニティ
allowTitleToDifferFromFilename: true
intro: The Community metrics API lets you get data about your community profile.
versions:
fpt: '*'
ghec: '*'
Expand Down
10 changes: 8 additions & 2 deletions translations/ja-JP/content/rest/metrics/statistics.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: 統計
intro: 'Repository Statistics API を使用すると、{% data variables.product.product_name %} がさまざまなタイプのリポジトリのアクティビティを視覚化するために用いるデータをフェッチできます。'
title: Repository statistics
shortTitle: 統計
allowTitleToDifferFromFilename: true
intro: 'The Repository statistics API allows you to fetch the data that {% data variables.product.product_name %} uses for visualizing different types of repository activity.'
versions:
fpt: '*'
ghes: '*'
Expand All @@ -11,6 +13,10 @@ topics:
miniTocMaxHeadingLevel: 3
---

## About the Repository statistics API

The Repository statistics API allows you to fetch the data that {% data variables.product.product_name %} uses for visualizing different types of repository activity.

### キャッシングについて

リポジトリの統計情報を計算するのは負荷が高い操作なので、可能な限りキャッシュされたデータを返すようにしています。 リポジトリの統計をクエリした際にデータがキャッシュされていなかった場合は、`202` レスポンスを受け取ります。また、この統計をまとめるため、バックグラウンドでジョブが開始します。 このジョブが完了するまで少し待ってから、リクエストを再度サブミットしてください。 ジョブが完了していた場合、リクエストは `200` レスポンスを受けとり、レスポンスの本文には統計情報が含まれています。
Expand Down
Loading