- It is critical that you configure any restrictive access policies you need for your storage bucket, because GitHub does not apply specific object permissions or additional access control lists (ACLs) to your storage bucket configuration. For example, if you make your bucket public, data in the bucket will be accessible to the public internet. For more information, see "Setting bucket and object access permissions" in the AWS Documentation.
- We recommend using a dedicated bucket for GitHub Packages, separate from the bucket you use for GitHub Actions storage.
- Make sure to configure the bucket you'll want to use in the future. We do not recommend changing your storage after you start using GitHub Packages.
Before you can enable and configure GitHub Packages on your GitHub Enterprise Server instance, you need to prepare your AWS storage bucket. To prepare your AWS storage bucket, we recommend consulting the official AWS docs at AWS Documentation.
Ensure your AWS access key ID and secret have the following permissions:
从 GitHub Enterprise Server 上的管理帐户任意页面的右上角，单击 。
在“GitHub Packages”下，选择“启用 GitHub Packages”。
Under "Packages Storage", select Amazon S3 and enter your storage bucket's details:
AWS Service URL: The service URL for your bucket. For example, if your S3 bucket was created in the
us-west-2 region, this value should be
For more information, see "AWS service endpoints" in the AWS documentation.
AWS S3 Bucket: The name of your S3 bucket dedicated to GitHub Packages.
AWS S3 Access Key and AWS S3 Secret Key: The AWS access key ID and secret key to access your bucket.
For more information on managing AWS access keys, see the "AWS Identity and Access Management Documentation."
注意：保存 管理控制台 中的设置会重启系统服务，这可能会导致用户可察觉的停机时间。
As a next step, you can customize which package ecosystems you would like to make available to end users on your GitHub Enterprise Server instance. For more information, see "Configuring package ecosystem support for your enterprise."
For an overview of getting started with GitHub Packages on GitHub, see "Getting started with GitHub Packages for your enterprise."