kiegroup / kiegroup/github-action-build-chain

Cannot checkout on custom container

Open
#463 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
94
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm trying to implement your plugin.

Here is my workflow

```
name: Build Chain

on: [ pull_request ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: "Run build-chain"
uses: kiegroup/github-action-build-chain@v3.5.5
with:
definition-file: https://raw.githubusercontent.com/VayanData/btibPipeline/develop/definitions.yml
env:
GITHUB_TOKEN: "${{ secrets.READ_VAYAN_REPOS }}"
```

It works fine, it checkouts on the desired projects and runs some basic build commands.

But when I try to run the same step on my own container (https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container#defining-credentials-for-a-container-registry), I have the following error: Error: [VayanData/btibcore_n4] Error cloning VayanData/btibcore_n4 and switching to target branch develop.

Here is the complete log archive
[logs_128.zip](https://github.com/kiegroup/github-action-build-chain/files/13714634/logs_128.zip)

My image is based on ubuntu:latest, has java 8 and some files needed for more complex builds.

Any idea on what the problem might be? (I'm sorry I'm quite new to Github actions)
Thanks in advance

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the workflow's github-action-build-chain step and compare its normal runner behavior with the custom container setup described in the issue. Review logs_128.zip, then reproduce the checkout failure and determine what change allows the target repository and branch to be cloned successfully in the container.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.