Description
Which area this feature is related to?
/kind bug
Which area this bug is related to?
/area ci
/area api
Bug Summary
Describe the bug:
The CI job 'build-and-validate' fails on the step 'Check typescript model generation' due to an error which happens when trying to run the openapi-generator from https://github.com/kubernetes-client/gen. This error seems to be caused by unresolved issues between newer versions of git and GitHub runners: actions/runner-images#6775 (comment).
Here is a list of issues which provides more detail on this:
- Dubious Ownership error for /source/openapi-generator kubernetes-client/gen#236
- fatal: detected dubious ownership in repository at actions/runner-images#6775
set-safe-directory: true
is not sufficient for submodules actions/checkout#915
To Reproduce:
Create a PR under devfile/api and let the job 'build-and-validate' run. Output of such a case can be seen here: https://github.com/devfile/api/actions/runs/4196247484/jobs/7276947737
Expected behavior
/source/openapi-generator /
should be able to execute as expected.
Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
/source/openapi-generator /
fatal: detected dubious ownership in repository at '/source/openapi-generator'
To add an exception for this directory, call:
git config --global --add safe.directory /source/openapi-generator
Error: Process completed with exit code 128.
Additional context
Any workaround?
None.
Suggestion on how to fix the bug
The commit revision for kubernetes-client/gen under build/typescript-model/generate.sh#L9 to reflect the changes introduced in kubernetes-client/gen#237 which fixes this issue.
Target Date: 03-10-2023