def validate_no_secrets_found(self, branch_name): """Check if any secrets are found in your change set. Args: branch_name (string): The name of the branch you are working on. """ secrets_found = get_secrets(branch_name, self.is_circle) if secrets_found: self._is_valid = False
def test_get_secrets(self): secrets = get_secrets('master', True) assert not secrets