porscheofficial / .github

Public GitHub profile and various reusable documents & GitHub action workflows
https://opensource.porsche.com
2 stars 2 forks source link

ORT Analyzer Workflow: /home/ort/curations/ort-package-configurations/curations.yml' does not exist #7

Closed mhp-borisbojic closed 3 months ago

mhp-borisbojic commented 3 months ago

Hello!

Since this month, the OSO Analyzer Workflow just fails with an error:

Exception in thread "main" java.lang.IllegalArgumentException: The path '/home/ort/curations/ort-package-configurations/curations.yml' does not exist.
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProvider$Companion.readCurationFiles(FilePackageCurationProvider.kt:104)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProvider.<init>(FilePackageCurationProvider.kt:89)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProvider.<init>(FilePackageCurationProvider.kt:90)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProviderFactory.create(FilePackageCurationProvider.kt:54)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProviderFactory.create(FilePackageCurationProvider.kt:50)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.api.PackageCurationProviderFactory$DefaultImpls.create(PackageCurationProviderFactory.kt:66)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProviderFactory.create(FilePackageCurationProvider.kt:50)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.api.PackageCurationProviderFactory$Companion.create(PackageCurationProviderFactory.kt:47)
    at org.ossreviewtoolkit.plugins.commands.analyzer.AnalyzerCommand.run(AnalyzerCommand.kt:166)
    at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:306)
    at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:319)
    at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:40)
    at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:489)
    at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:486)
    at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:506)
    at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:513)
    at org.ossreviewtoolkit.cli.OrtMainKt.main(OrtMain.kt:66)

As container, we are using the latest one available (Prod), as of https://skyway.porsche.com/confluence/display/OSO/Analyzer.ORT%2bIntegration

Our workflow file is simple:

- name: Run OSO ORT Analyzer
        id: analyzer
        uses: porscheofficial/.github/workflows/ort-analyze@main
        with:
          ort-aws-access-key-id: ${{ env.OSO_CREDENTIALS_AWSACCESSKEYID }}
          ort-aws-secret-access-key: ${{ env.OSO_CREDENTIALS_AWSSECRETKEYID }}
          container-registry: ${{ env.OSO_CREDENTIALS_ECRREGISTRY }}
          container-repository: ort-porsche
          container-image-tag: latest
          allow-dynamic-versions: true
itrich commented 3 months ago

Hi @mhp-borisbojic,

can you please set container-repository: ort and try a new run of your ORT Analyzer workflow?

Best,

Eduard

mhp-borisbojic commented 3 months ago

Thank you, we indeed used the wrong name :(