Skip to content

Macro Rendering Error

File: rules/cicd-gha-unsecure-commands.md

UndefinedError: 'github' is undefined

Traceback (most recent call last):
  File "/home/circleci/project/.venv/lib/python3.9/site-packages/mkdocs_macros/plugin.py", line 527, in render
    return md_template.render(**page_variables)
  File "/home/circleci/project/.venv/lib/python3.9/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/home/circleci/project/.venv/lib/python3.9/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 32, in top-level template code
  File "/home/circleci/project/.venv/lib/python3.9/site-packages/jinja2/environment.py", line 487, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'github' is undefined