By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Using AWS Codebuild as Github Actions Runner(Github Enterprise) returns an error

0

The issue happens on the DOWNLOAD_SOURCE phase with an error

CLIENT_ERROR Retrieving Secrets Manager Token Failed with Error: Given secrets arn:aws:secrets:manager*** failed validation with error: ServerType is required

Currently i am using GHE and the IAM Role attached to the Codebuild Project has permissions to read the secrets that is used within the connection to use the token.

Is only Github supported at the moment? and not GHE?

1 Answer
0

Ensure ServerType is set to GITHUB_ENTERPRISE in Secrets Manager for GHE. Confirm CodeBuild’s IAM role has GetSecretValue permissions.

If issues persist, manually manage the GHE token as an environment variable and handle source downloads with custom Git commands.

This approach should address the error and allow CodeBuild to work with GitHub Enterprise effectively.

profile picture
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions