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

Passing Configuration files as arguments to Evaluator through the action file #24

Open
saaskesaakura345 opened this issue May 18, 2023 · 2 comments

Comments

@saaskesaakura345
Copy link

The analyzer arguments are succesfully taken by ORT through the action file.
I am trying to pass Configuration files as arguments to the Evaluator ort-cli-evaluate-args: >
But lacking on how this can be achieved as I am receiving error

How should the configuration files be passed to Evaluator in the action file?

jobs:
  ort:
    runs-on: ubuntu-latest
.
.
.
.
      - name: Run GitHub Action for ORT
        uses: oss-review-toolkit/ort-ci-github-action@v1
        with:
          allow-dynamic-versions: 'true'
          ort-cli-analyze-args: >
            -l project=oss-project
            -l dist=external
            -l org=engineering-sdk-xyz-team-germany-berlin


       ort-cli-evaluate-args: >
         --resolutions-file ./resolutions.yml

image

@georg-eckert-zeiss
Copy link
Contributor

georg-eckert-zeiss commented Jun 5, 2024

Looks like it is looking in the wrong directory for config.yml, curations.yml and so on:

Looking for ORT configuration in the following file:
/home/ort/.ort/config/config.yml (does not exist)

Looking for analyzer-specific configuration in the following files and directories:
/home/ort/work/<Repo-Name>/<Repo-Name>/.ort.yml (does not exist)
/home/ort/.ort/config/resolutions.yml

They are actually under

/home/ort/work/<Repo-Name>/<Repo-Name>/.ort/config/

According to the action.yml the following mappings exist:

--mount type=bind,source=$HOME,target=/home/ort

@georg-eckert-zeiss
Copy link
Contributor

georg-eckert-zeiss commented Jun 6, 2024

I found a workaround. When calling the action use:

      - name: Run GitHub Action for ORT
        uses: oss-review-toolkit/ort-ci-github-action@v1
        with:
          allow-dynamic-versions: 'true'
          ort-home-path: 'work/${{ github.event.repository.name }}/${{ github.event.repository.name }}/.ort'
          

But this doesn't fully work either.

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

2 participants