eca icon indicating copy to clipboard operation
eca copied to clipboard

Nightly build fails for clones of this repo without auth

Open bombaywalla opened this issue 1 year ago • 5 comments

I'm not sure this is a real bug, but thought I'd point it out just in case. [[As an aside, when creating an issue, I am asked to choose between a "bug" or a "feature". It would be good to have additional alternatives such as "issue" or no tag at all.]]

Since about the last week, when I update my clone of this project by pushing an updated master, I get a notice that the nightly build has failed.

Here is a screenshot.

Image

It looks like some authorization has failed.

I'm not sure what the appropriate fix is. Perhaps the nightly build script should only run when auth is provided? If it's something I need to do on my cloned repo, please let me know.

Thanks

bombaywalla avatar Sep 13 '25 19:09 bombaywalla

@bombaywalla that happens because we use ECA_TOKEN here to create a release at https://github.com/editor-code-assistant/eca-dev-builds, since you forked this repo, you probably didn't set or makes sense to set that token.

ericdallo avatar Sep 13 '25 20:09 ericdallo

Thanks.

Excuse my ignorance, but I'm not sure what the appropriate and conventional solution to this is, assuming I have no need or intention to run nightly builds.

Should I not fork this repo to create PRs? Should I add an ECA_TOKEN to my forked repo? Should I just ignore this failure each night? Something else?

bombaywalla avatar Sep 13 '25 23:09 bombaywalla

Just ignore it, I believe it should exist some GitHub config to not run this action in forks but don't mind failing it won't affect eca repo in your fork

ericdallo avatar Sep 14 '25 00:09 ericdallo

I did some investigation, and it seems there are two approaches people have taken.

  1. In the forked repo, disable all actions. This is all-or-nothing. See this github community discussion for more. I have done this in my forked repo.
  2. Change the workflow to conditionally run the specific workflows only when in the original repo and not in any other fork. See this Stack Overflow discussion for more. This can be made specific to a workflow. If you want, you can add something similar to the workflow.

bombaywalla avatar Sep 14 '25 00:09 bombaywalla

Thanks @bombaywalla just did that here

ericdallo avatar Sep 14 '25 13:09 ericdallo