Skip to content

code 3.2.251 throwing errors upon execution within Github Actions #182

@k-laughman

Description

@k-laughman

Hello,

A recent push to scan my branches has been throwing these errors within the runner that Github Actions uses to perform the repo branch scan. I have also seen these locally on my windows machine - are these expected?

I am using "ubuntu-latest" for the Github Actions environment.

Error: -11 20:51:05,786 [MainThread ] [ERROR] Failed to load detector Algolia Key detected in code with regex (?i)(?:algolia)(?:.|[\n\r]){0,60}([A-Z0-9]{10}) - (?i)(?:algolia)(?:.|[\n\r]){0,80}([A-Za-z0-9]{32})
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/checkov/secrets/plugins/custom_regex_detector.py", line 52, in init
self.denylist.add(re.compile('{}'.format(detector["Regex"])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/init.py", line 227, in compile
return _compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/init.py", line 294, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/_compiler.py", line 745, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/_parser.py", line 989, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/_parser.py", line 464, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/_parser.py", line 850, in _parse
raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 51
Error: -11 20:51:05,789 [MainThread ] [ERROR] Failed to load detector Algolia Key detected in code with regex (?i)(?:algolia)(?:.|[\n\r]){0,60}([A-Z0-9]{10}) - (?i)(?:algolia)(?:.|[\n\r]){0,80}([A-Za-z0-9]{32})

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions