コード例 #1
0
ファイル: validate_files.py プロジェクト: rnyambugi/content
    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
コード例 #2
0
ファイル: validate_files.py プロジェクト: ankitha90/content
    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
コード例 #3
0
 def test_get_secrets(self):
     secrets = get_secrets('master', True)
     assert not secrets