Integrating GitHub Actions with Adobe Experience Manager Cloud Manager Git repository without OAuth

This article explains how to connect GitHub Actions to the Adobe-managed Cloud Manager Git repository for automated code pushes, without using OAuth or individual user credentials.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service (AEMaaCS)
  • Adobe Cloud Manager

Symptoms

  • Organizations often want to automate code deployments to Adobe Experience Manager (AEM) Cloud Manager by pushing code from GitHub using GitHub Actions.
  • The Adobe-managed Cloud Manager Git repository doesn’t support OAuth authentication for Git operations, and using individual user credentials may not align with automation or security best practices.
  • Instead, a dedicated service account can be used to enable secure, automated Git operations.
  • Alternatively, organizations can use the Bring Your Own Git integration to connect their GitHub repository directly to Cloud Manager, avoiding the need for Adobe-managed Git credentials.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review Authentication Requirements:

    • The Adobe-managed Cloud Manager Git repository requires Git username and password authentication over HTTPS. OAuth isn’t supported for Git operations.
  2. Create a Dedicated Service Adobe ID:

    • In the Adobe Admin Console, create a dedicated Adobe ID for automation purposes (For example: a generic service account not tied to a specific employee).

    • Ensure this account is managed according to your organization’s service account lifecycle and security best practices.

  3. Assign Cloud Manager Role:

    • Grant the service Adobe ID the necessary Cloud Manager role (at least Developer) for the relevant program using the Adobe Admin Console.
  4. Generate Git Credentials:

    • Log in as the service Adobe ID.

    • In Cloud Manager, open the repository’s Repo Info dialog and click Generate Password to create a Git username and password for this account.

  5. Store Credentials Securely:

    • Save the generated Git username and password as secrets in your GitHub repository or environment (use generic names such as GIT_USERNAME and GIT_PASSWORD).
  6. Configure GitHub Actions workflow:

    • Reference the stored secrets in your GitHub Actions workflow to authenticate Git operations against the Adobe-managed repository.

    • Use the Git remote URL format with the service account credentials.

  7. Alternative: Bring Your Own Git Integration:

    • If your security policy doesn’t permit a mailbox-enabled service identity, or you prefer not to use Adobe-managed Git credentials, consider using the Bring Your Own Git integration to connect your GitHub repository directly to Cloud Manager.

    • For more information, refer to the official documentation on managing code with external repositories and private repositories in Cloud Manager.

  8. Verification:

    • After configuring your workflow, trigger a test GitHub Action to ensure code is pushed successfully to the Adobe-managed Cloud Manager Git repository.
recommendation-more-help
experience-cloud-kcs-help-kbarticles