scan-docs icon indicating copy to clipboard operation
scan-docs copied to clipboard

ImportError when running github action.

Open csr13 opened this issue 2 years ago • 0 comments

Output here for the simple run. Any advice is recommended.

with:
    output: reports
    src: /github/workspace
/usr/bin/docker run --name shiftleftscanlatest_1fdd60 --label 29a95e --workdir /github/workspace --rm -e INPUT_OUTPUT -e INPUT_SRC -e INPUT_TYPE -e WORKSPACE -e SCAN_ANNOTATE_PR -e SKIP_BOT_TRIGGERS -e ENABLE_OSS_RISK -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/redacted/redacted":"/github/workspace" shiftleft/scan:latest  "scan" "--src" "/github/workspace" "--out_dir" "reports" "--type" "" "--no-error"
Traceback (most recent call last):
  File "/usr/local/src/scan", line 35, in <module>
    import lib.convert as convertLib
  File "/usr/local/src/lib/convert.py", line 28, in <module>
    from reporter.sarif import render_html
  File "/usr/local/lib/python3.8/site-packages/reporter/sarif.py", line 6, in <module>
    from jinja2 import Environment, Markup, PackageLoader, exceptions, select_autoescape
ImportError: cannot import name 'Markup' from 'jinja2' (/usr/local/lib/python3.8/site-packages/jinja2/__init__.py)```

csr13 avatar Mar 25 '22 15:03 csr13