Skip to content

chore(cicd): switch to CSC for GH sources#2019

Merged
mergify[bot] merged 10 commits intoaws:mainlinefrom
huanjani:githubv2
Mar 10, 2021
Merged

chore(cicd): switch to CSC for GH sources#2019
mergify[bot] merged 10 commits intoaws:mainlinefrom
huanjani:githubv2

Conversation

@huanjani
Copy link
Copy Markdown
Contributor

@huanjani huanjani commented Mar 5, 2021

This PR changes the way we connect to GitHub repo providers going forward. If users pass in a --github-access-token flag (now hidden) when running pipeline init, the pipeline will connect via a version 1 connection; existing pipelines with access_token_secret in their manifests will continue to use their existing (version 1) connection when running pipeline update. Otherwise, the connection will use CodeStar Connections and the workflow will look like that for Bitbucket (polling for connection update, etc.).

Integ test and doc updates and refactoring to come out in separate PRs.

Related #1339.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@huanjani huanjani requested a review from a team as a code owner March 5, 2021 18:29
@huanjani huanjani requested a review from bvtujo March 5, 2021 18:29
Copy link
Copy Markdown
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry i missed so much context about this PR 😰 but I think maybe we could use the methodology to simplify the pipeline code and avoid having very similar functions.

Comment thread internal/pkg/cli/pipeline_update.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/cli/pipeline_delete.go Outdated
Comment thread internal/pkg/cli/pipeline_init.go
Comment thread internal/pkg/cli/pipeline_init.go Outdated
Comment thread internal/pkg/cli/pipeline_init.go
Comment thread internal/pkg/cli/pipeline_init_test.go
Comment thread internal/pkg/cli/pipeline_update.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go
Comment thread templates/cicd/pipeline_cfn.yml Outdated
Comment thread templates/cicd/pipeline_cfn.yml Outdated
Copy link
Copy Markdown
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow this is so good! Much better than the previous version I reviewed last time. Good job 🎉

Comment thread internal/pkg/deploy/cloudformation/stack/pipeline.go
Copy link
Copy Markdown
Contributor

@efekarakus efekarakus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! v minor feedback and then :shipit:

Comment thread internal/pkg/cli/pipeline_init.go
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go
@efekarakus efekarakus changed the title build(cicd): switch to CSC for GH sources chore(cicd): switch to CSC for GH sources Mar 10, 2021
@mergify mergify Bot merged commit 3103000 into aws:mainline Mar 10, 2021
mergify Bot pushed a commit that referenced this pull request Mar 10, 2021
…ource changes (#2038)

Update docs to reflect shift from use personal access tokens to CodeStar Connections for connecting to GitHub repositories when creating pipelines. 

Renamed old "GH" test files to "GHV1" and added new (v2) "GH" `stack` integ tests but not `cloudformation` integ tests because of polling. 

Related #2019.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
@huanjani huanjani deleted the githubv2 branch June 22, 2021 04:13
thrau pushed a commit to localstack/copilot-cli-local that referenced this pull request Dec 9, 2022
This PR changes the way we connect to GitHub repo providers going forward. If users pass in a `--github-access-token` flag (now hidden) when running `pipeline init`, the pipeline will connect via a [version 1](https://docs.aws.amazon.com/codepipeline/latest/userguide/update-github-action-connections.html) connection; existing pipelines with `access_token_secret` in their manifests will continue to use their existing (version 1) connection when running `pipeline update`. Otherwise, the connection will use CodeStar Connections and the workflow will look like that for Bitbucket (polling for connection update, etc.).

Integ test and doc updates and refactoring to come out in separate PRs.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
thrau pushed a commit to localstack/copilot-cli-local that referenced this pull request Dec 9, 2022
…ource changes (aws#2038)

Update docs to reflect shift from use personal access tokens to CodeStar Connections for connecting to GitHub repositories when creating pipelines. 

Renamed old "GH" test files to "GHV1" and added new (v2) "GH" `stack` integ tests but not `cloudformation` integ tests because of polling. 

Related aws#2019.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
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.

5 participants