def _github_source()

in chalice/pipeline.py [0:0]


    def _github_source(self, pipeline_version):
        # type: (str) -> Dict[str, Any]
        oauth_token = {'Ref': 'GithubPersonalToken'}  # type: Dict[str, Any]
        if pipeline_version == 'v2':
            oauth_token = {
                "Fn::Join": [
                    "", ["{{resolve:secretsmanager:",
                         {"Ref": "GithubRepoSecretId"},
                         ":SecretString:",
                         {"Ref": "GithubRepoSecretJSONKey"},
                         "}}"]
                ]
            }
        return {
            'Name': 'Source',
            'Actions': [{
                "Name": "Source",
                "ActionTypeId": {
                    "Category": "Source",
                    "Owner": "ThirdParty",
                    "Version": "1",
                    "Provider": "GitHub"
                },
                'RunOrder': 1,
                'OutputArtifacts': [{
                    'Name': 'SourceRepo',
                }],
                'Configuration': {
                    'Owner': {'Ref': 'GithubOwner'},
                    'Repo': {'Ref': 'GithubRepoName'},
                    'OAuthToken': oauth_token,
                    'Branch': 'master',
                    'PollForSourceChanges': True,
                }
            }],
        }