Liqiuibase-github-actions run time error

Hello,
any body has a chance to try GitHub - liquibase-github-actions/update: Official GitHub Action to run Liquibase Update?
I just tested v4.29.2 and find a bug.
it will generate the error:
/bin/bash: /entry.sh: Permission denied

it looks that the permission for liquibase-github-actions/update/v4.29.2/update.sh should be changed with chmod 755 in advance before commiting into the github repo, then this binary is runnable for the liquibase user. otherwise, it will fail with the above error message. not sure if there is a way to contact the maintainer to make change? I send out an email without the response.

@liqui I used these actions in a demo a couple of weeks ago and they were working as expected here is an example run with 4.29.2 actions - Liquibase with GitHub Actions Demo · lbadam/github-actions-with-liquibase@0fca671 · GitHub. There are a handful of examples in that repo you can take a look at.

Is the repo you’re trying to interact with public? Can you share the link? Is there any other info you can share that would help reproduce the issue?

@admah thanks so much. I don’t have the public link for the error.
but I managed to find the issue.
here is the permission for update.sh, I think I expect this file permission needs to be executable by all. otherwise, the docker image created using this file can only be executed by root.

-rwxr-x— 1 ubuntu wheel 13839 Sep 5 18:26 ./_actions/liquibase-github-actions/update/v4.29.2/update.sh

here is my umask value.
$ umask
0022

I think for your runnable machine, the file downloaded for update.sh is executable by all.
just not sure if I missed anything?

thanks

If I run git clone GitHub - liquibase-github-actions/update: Official GitHub Action to run Liquibase Update, the file permission for update.sh is 755. still not sure why the gitaction pull will create the file update.sh with permission of 750? can we fix it with the following change in Dockerfile? not sure if I can modify the Dockerfile dynamically to get gitaction work or has to wait for the owner to make such a change?

COPY update.sh /entry.sh
RUN chmod 755 /entry.sh

@admah this issue is resolved with umask. thanks for the help.
I got the new error, “The file changelog.xml was not found in the configured search path”
for the code below, I put the file changelog.xml under $GITHUB_WORKSPACE and $GITHUB_WORKSPACE/.github/workflows, it doesn’t help. I even tried to add searchPath as below, it still doesn’t work, any ideas to resolve this issue?

  • uses: liquibase-github-actions/update@v4.29.2
    with:
    changelogFile: changelog.xml
    searchPath: “$GITHUB_WORKSPACE”

@liqui you need to set up Liquibase per the instructions, and run it. You can see examples in the repo that I shared above. The error you’re seeing shows that Liquibase can’t find the changelog, and I would not expect it to find the changelog in the workflows folder.