|
| 1 | +--- |
| 2 | +title: Enabling GitHub Actions with Google Cloud Storage |
| 3 | +intro: 'You can enable {% data variables.product.prodname_actions %} on {% data variables.product.prodname_ghe_server %} and use Google Cloud Storage to store data generated by workflow runs.' |
| 4 | +permissions: 'Site administrators can enable {% data variables.product.prodname_actions %} and configure enterprise settings.' |
| 5 | +versions: |
| 6 | + feature: 'actions-ghes-gcp-storage' |
| 7 | +type: how_to |
| 8 | +topics: |
| 9 | + - Actions |
| 10 | + - Enterprise |
| 11 | + - Infrastructure |
| 12 | + - Storage |
| 13 | +shortTitle: Google Cloud Storage |
| 14 | +--- |
| 15 | + |
| 16 | +{% note %} |
| 17 | + |
| 18 | +**Note:** {% data variables.product.prodname_actions %} support for Google Cloud Storage is currently in beta and subject to change. |
| 19 | + |
| 20 | +{% endnote %} |
| 21 | + |
| 22 | +## Prerequisites |
| 23 | + |
| 24 | +Before enabling {% data variables.product.prodname_actions %}, make sure you have completed the following steps: |
| 25 | + |
| 26 | +* Create your Google Cloud Storage bucket for storing data generated by workflow runs. |
| 27 | +* Create a Google Cloud service account that can access the bucket, and create a Hash-based Message Authentication Code (HMAC) key for the service account. For more information, see "[Manage HMAC keys for service accounts](https://cloud.google.com/storage/docs/authentication/managing-hmackeys)" in the Google Cloud documentation. |
| 28 | + |
| 29 | + The service account must have the following [Identity and Access Management (IAM) permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions) for the bucket: |
| 30 | + |
| 31 | + * `storage.objects.create` |
| 32 | + * `storage.objects.get` |
| 33 | + * `storage.objects.list` |
| 34 | + * `storage.objects.update` |
| 35 | + * `storage.objects.delete` |
| 36 | + * `storage.multipartUploads.create` |
| 37 | + * `storage.multipartUploads.abort` |
| 38 | + * `storage.multipartUploads.listParts` |
| 39 | + * `storage.multipartUploads.list` |
| 40 | +{% data reusables.actions.enterprise-common-prereqs %} |
| 41 | + |
| 42 | +## Enabling {% data variables.product.prodname_actions %} with Google Cloud Storage |
| 43 | + |
| 44 | +{% data reusables.enterprise_site_admin_settings.access-settings %} |
| 45 | +{% data reusables.enterprise_site_admin_settings.management-console %} |
| 46 | +{% data reusables.enterprise_management_console.actions %} |
| 47 | +{% data reusables.actions.enterprise-enable-checkbox %} |
| 48 | +1. Under "Artifact & Log Storage", select **Google Cloud Storage**, and enter your bucket's details: |
| 49 | + |
| 50 | + * **Service URL**: The service URL for your bucket. This is usually `https://storage.googleapis.com`. |
| 51 | + * **Bucket Name**: The name of your bucket. |
| 52 | + * **HMAC Access Id** and **HMAC Secret**: The Google Cloud access ID and secret for your storage account. For more information, see "[Manage HMAC keys for service accounts](https://cloud.google.com/storage/docs/authentication/managing-hmackeys)" in the Google Cloud documentation. |
| 53 | + |
| 54 | +  |
| 55 | +{% data reusables.enterprise_management_console.test-storage-button %} |
| 56 | +{% data reusables.enterprise_management_console.save-settings %} |
| 57 | + |
| 58 | +{% data reusables.actions.enterprise-postinstall-nextsteps %} |
0 commit comments