# cloudformation-github ## Set up git filter _Note: this is changing, to accomodate CICD. `example_inputs` is now transformed into `inputs` by `setup.sh` in each resource folder. Only GitHub-Repositories-Repository has been changed so far._ This project uses a filter set up in the [.gitattributes](.gitattributes) file to replace private values for testing within the different `overides.json` on each resource. The filter has to be added manually inside the `.git/config` file once the repository has been cloned. Executing this in the console from the project root will add it. Replace the values inside the __square__ brackets with the actual values for testing ```properties cat << EOF >> .git/config [filter "github"] clean = sed \\ -e 's:[organizacionForTesting]::g' \\ -e 's:[existingRepositoryForTesting]::g' \\ -e 's:[existingShaCommitOfAboveRepositoryForTesting]::g' \\ -e 's:[existingShaCommitOfAboveRepositoryForTesting]::g' \\ -e 's:[existingRepositoryForTesting]::g' \\ -e 's:[existingTeamForTesting]::g' \\ -e 's:[existingGithubUserForTesting]::g' smudge = sed \\ -e 's::[organizacionForTesting]:g' \\ -e 's::[existingRepositoryForTesting]:g' \\ -e 's::[existingShaCommitOfAboveRepositoryForTesting]:g' \\ -e 's::[existingShaCommitOfAboveRepositoryForTesting]:g' \\ -e 's::[existingTeamForTesting]:g' \\ -e 's::[existingGithubUserForTesting]:g' EOF ```