Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code 3.2.251 throwing errors upon execution within Github Actions #182

Open
k-laughman opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@k-laughman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant