Skip to content

Commit

Permalink
PEM_END_PATTERN was removed from common
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Jul 3, 2023
1 parent 1212976 commit ff16585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion credsweeper/common/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,3 @@ class DiffRowType(Enum):

# PEM x509 patterns
PEM_BEGIN_PATTERN = "-----BEGIN"
PEM_END_PATTERN = "-----END"
4 changes: 3 additions & 1 deletion credsweeper/scanner/scan_type/pem_key_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import string
from typing import Optional, List

from credsweeper.common.constants import Chars, PEM_BEGIN_PATTERN, PEM_END_PATTERN
from credsweeper.common.constants import Chars, PEM_BEGIN_PATTERN
from credsweeper.config import Config
from credsweeper.credentials import Candidate, LineData
from credsweeper.file_handler.analysis_target import AnalysisTarget
Expand All @@ -14,6 +14,8 @@

logger = logging.getLogger(__name__)

PEM_END_PATTERN = "-----END"


class PemKeyPattern(ScanType):
"""Check if line is a start of a PEM key.
Expand Down

0 comments on commit ff16585

Please sign in to comment.