GitGuardian CI/CD integration with Travis CI is performed through our CLI application gg-shield. gg-shield is a wrapper around GitGuardian API for secrets detection that requires an API key to work.
- Create an API key within the API section of your GitGuardian workspace.
- Add this API key to the
GITGUARDIAN_API_KEYenvironment variable in your project settings.
- In order to add gg-shield to your pipelines, configure your
.travis.ymlto add a gg-shield scanning job. For further explanation about how to define encrypted variables in Travis CI, please read their documentation.
jobs: include: - name: GitGuardian Scan language: python python: 3.8 install: - pip install ggshield script: - ggshield scan ci