The Wayback Machine - https://web.archive.org/web/20201019103127/https://docs.github.com/ja/free-pro-team@latest/github/setting-up-and-managing-your-enterprise-account/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-enterprise-account
ドキュメントには頻繁に更新が加えられ、その都度公開されています。本ページの翻訳はまだ未完成な部分があることをご了承ください。最新の情報については、英語のドキュメンテーションをご参照ください。本ページの翻訳に問題がある場合はこちらまでご連絡ください。

Configuring the retention period for GitHub Actions artifacts and logs in your enterprise account

Enterprise owners can configure the retention period for GitHub Actions artifacts and logs in an enterprise account.

Enterpriseアカウントは、GitHub Enterprise Cloud及びGitHub Enterprise Serverで利用できます。 For more information, see "About enterprise accounts."

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

OR, learn how to contribute.

By default, the artifacts and log files generated by workflows are retained for 90 days before they are automatically deleted. You can adjust the retention period, depending on the type of repository:

  • For public repositories: you can change this retention period to anywhere between 1 day or 90 days.
  • For private, internal, and GitHub Enterprise repositories: you can change this retention period to anywhere between 1 day or 400 days.

When you customize the retention period, it only applies to new artifacts and log files, and does not retroactively apply to existing objects. For managed repositories and organizations, the maximum retention period cannot exceed the limit set by the managing organization or enterprise.

Setting the retention period for an enterprise

  1. 任意のページの右上で をクリックします。
    サイトアドミン設定にアクセスするための宇宙船のアイコン
  2. In the left sidebar, click Enterprise.
    Enterprise tab in the Site admin settings
  3. Enterpriseアカウントのサイドバーで、 Policies(ポリシー)をクリックしてください。
    Enterpriseアカウントサイドバー内のポリシータブ
  4. Under " Policies", click Actions.
  5. Under Artifact and log retention duration, enter a new value.
  6. Click Save to apply the change.

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

OR, learn how to contribute.