Recently (Oct 2020) AWS started using GitHub Actions v2 and now when I select the GitHub private repository in my code I get this error:
Invalid input: when using CodePipeline both sourceType, and artifactType must be set to: CODEPIPELINE
Default "Source provider" is selected as "AWS CodePipeline but when I change it to GitHub it throws the above error.