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

Missing exit code handling for scanner #21

Open
DanielRuf opened this issue Apr 20, 2023 · 1 comment
Open

Missing exit code handling for scanner #21

DanielRuf opened this issue Apr 20, 2023 · 1 comment

Comments

@DanielRuf
Copy link

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

@DanielRuf
Copy link
Author

DanielRuf commented Apr 20, 2023

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

@DanielRuf DanielRuf changed the title Stops after scan Missing exit code handling for scanner Apr 20, 2023
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

Successfully merging a pull request may close this issue.

1 participant