oss-review-toolkit/ort-ci-github-action

Missing exit code handling for scanner

DanielRuf opened this issue · 1 comments

Somehow it does not continue after the scan has finished.

Do we have to change something regarding the error code handling (exited with statuscode 2)?

Used workflow config:

name: Run ORT
on: [push]
jobs:
  ort:
    runs-on: ubuntu-latest
    steps:
      #- name: Use HTTPS instead of SSH for Git cloning
      #  run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/
      - name: Checkout project
        uses: actions/checkout@v3
      - name: Run GitHub Action for ORT
        uses: oss-review-toolkit/ort-ci-github-action@15297c37f35256c0e3a977c30771761ff51235d7
        with:
          run: >
            cache-dependencies,
            labels,
            analyzer,
            scanner,
            evaluator,
            advisor,
            reporter,
            upload-results

grafik

Seems to stop because of the missing logic from these lines:

&& export ORT_CLI_ANALYZE_EXIT_CODE="${ORT_CLI_ANALYZE_EXIT_CODE:-0}" \

[[ $ORT_CLI_ANALYZE_EXIT_CODE -ne 2 ]] && exit ${ORT_CLI_ANALYZE_EXIT_CODE} || exit 0

&& export ORT_CLI_EVALUATE_EXIT_CODE="${ORT_CLI_EVALUATE_EXIT_CODE:-0}" \

[[ $ORT_CLI_EVALUATE_EXIT_CODE -ne 2 ]] && exit ${ORT_CLI_EVALUATE_EXIT_CODE} || exit 0