Skip to content

Commit

Permalink
Also allow for SHA256 values
Browse files Browse the repository at this point in the history
  • Loading branch information
CerealBoy committed Jan 9, 2025
1 parent f720100 commit beeadc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/job/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ func gitFetchCommitWithFallback(ctx context.Context, shell *shell.Shell, gitFetc

const CommitMetadataKey = "buildkite:git:commit"

var potentiallyValidGitSHA = regexp.MustCompile(`^[a-f0-9]{40}$`)
var potentiallyValidGitSHA = regexp.MustCompile(`^[a-f0-9]{40}|[a-f0-9]{64}$`)

// sendCommitToBuildkite sends commit information (commit, author, subject, body) to Buildkite, as the BK backend doesn't
// have access to user's VCSes. To do this, we set a special meta-data key in the build, but only if it isn't already present
Expand Down

0 comments on commit beeadc2

Please sign in to comment.