Skip to content

feat(stacks): use Code Connections for repo auth#147

Open
dmonroy wants to merge 1 commit into
mainfrom
issue-82-code-connections
Open

feat(stacks): use Code Connections for repo auth#147
dmonroy wants to merge 1 commit into
mainfrom
issue-82-code-connections

Conversation

@dmonroy

@dmonroy dmonroy commented Jun 23, 2026

Copy link
Copy Markdown

What

Updates the source-credential prompt in apppack create app / create pipeline (VerifySourceCredentials) to guide users through AWS Code Connections instead of the legacy CodeBuild OAuth flow.

  • Opens the CodeBuild default source credentials page (.../codebuild/sourceCredentials/default) in the cluster's region, replacing the old .../codebuild/project/new page.
  • Rewrites the on-screen steps to the GitHub App connection flow ("Manage default source credential" → create/select a connection → save as the default source credential). Wording uses the actual console labels and is provider-neutral (GitHub and Bitbucket).
  • Drops the stale "Connect using OAuth / Confirm popup" instructions.

Why

The old new-project OAuth walkthrough no longer matches the AWS console and relied on a deprecated path. Closes #82.

How it works

No template change required: the app's CodeBuild project specifies no source Auth of its own, so it uses the account-level default source credential. Saving a Code Connection as that default (what this prompt guides) is enough — confirmed by the AWS CodeBuild "GitHub App connections" docs, where the ImportSourceCredentials --auth-type CODECONNECTIONS call is the CLI equivalent of the console page we open.

Testing

  • go build ./..., go vet ./stacks/, go test ./stacks/ all pass
  • gofmt clean
  • No tests referenced the old prompt text

Point users to the CodeBuild default source credentials page to set up a
Code Connections (GitHub App) credential, replacing the legacy OAuth
new-project walkthrough.

Refs #82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use new Code Connections process

2 participants