tcosolutions / betterscan

Code Scanning/SAST/Static Analysis/Linting using many tools/Scanners with One Report (Code, IaC) - Betterscan
https://betterscan.io
GNU Affero General Public License v3.0
818 stars 90 forks source link

Checkmate not found error #184

Closed raj-mehra closed 3 months ago

raj-mehra commented 3 months ago

Hello @marcinguy I tried to run the command sh <(curl https://raw.githubusercontent.com/tcosolutions/betterscan/main/cli.sh) after the initial docker setup i get the following error

sh <(curl https://raw.githubusercontent.com/tcosolutions/betterscan-ce/main/cli-html.sh)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   699  100   699    0     0   7724      0 --:--:-- --:--:-- --:--:--  7766
/bin/sh: 1: checkmate: not found
/bin/sh: 1: checkmate: not found
/bin/sh: 1: checkmate: not found
/bin/sh: 1: checkmate: not found

Am i missing something, or my setup is wrong?? Cause this worked without doing anything the last time i tried.

Thank you so much for your help in advance :)

marcinguy commented 3 months ago

hi @raj-mehra it used to work on and off. With continous development and changes/updates sometimes things break. I see the error/warnings but have no capacity as a single person to work on this all

raj-mehra commented 3 months ago

No issues, I'll try to debug the issue and will post an update if I can fix it.

marcinguy commented 3 months ago

@raj-mehra ok cool. Thanks. Did you have any success/progress with it? Having more people involved/working on the project would be great

marcinguy commented 3 months ago

@raj-mehra Let me know if you need anything from me, access or something

marcinguy commented 3 months ago

Closing for now. Please reopen when needed

marcinguy commented 3 months ago

@raj-mehra FYI I guess u don’t see my gh action logs but here it errors out

9.583 'list' object has no attribute 'keys'
------
Dockerfile:53
--------------------
  52 |     # Clone the checkmate repository and install
  53 | >>> RUN git clone -b checkmate3-cli https://github.com/***/checkmate-ce.git /checkmate-ce && \
  54 | >>>     cd /checkmate-ce && \
  55 | >>>     pip install pip && \
  56 | >>>     pip install --upgrade pip && \
  57 | >>>     pip install poetry && \
  58 | >>>     poetry install
  59 |        
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone -b checkmate3-cli https://github.com/***/checkmate-ce.git /checkmate-ce &&     cd /checkmate-ce &&     pip install pip &&     pip install --upgrade pip &&     pip install poetry &&     poetry install" did not complete successfully: exit code: 1
Error: buildx failed with: ERROR: failed to solve: process "/bin/sh -c git clone -b checkmate3-cli https://github.com/***/checkmate-ce.git /checkmate-ce &&     cd /checkmate-ce &&     pip install pip &&     pip install --upgrade pip &&     pip install poetry &&     poetry install" did not complete successfully: exit code: 1

🤷‍♂️

raj-mehra commented 3 months ago

@raj-mehra FYI I guess u don’t see my gh action logs but here it errors out

9.583 'list' object has no attribute 'keys'
------
Dockerfile:53
--------------------
  52 |     # Clone the checkmate repository and install
  53 | >>> RUN git clone -b checkmate3-cli https://github.com/***/checkmate-ce.git /checkmate-ce && \
  54 | >>>     cd /checkmate-ce && \
  55 | >>>     pip install pip && \
  56 | >>>     pip install --upgrade pip && \
  57 | >>>     pip install poetry && \
  58 | >>>     poetry install
  59 |        
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone -b checkmate3-cli https://github.com/***/checkmate-ce.git /checkmate-ce &&     cd /checkmate-ce &&     pip install pip &&     pip install --upgrade pip &&     pip install poetry &&     poetry install" did not complete successfully: exit code: 1
Error: buildx failed with: ERROR: failed to solve: process "/bin/sh -c git clone -b checkmate3-cli https://github.com/***/checkmate-ce.git /checkmate-ce &&     cd /checkmate-ce &&     pip install pip &&     pip install --upgrade pip &&     pip install poetry &&     poetry install" did not complete successfully: exit code: 1

🤷‍♂️

Hey sorry for the late reply, thanks for the logs. I'll try to fix it today :)

raj-mehra commented 3 months ago

@marcinguy I've sent you more details, please let me know if that helps.

marcinguy commented 3 months ago

Thank for you help @raj-mehra I added you as a project memeber, so you can see GH Action outputs, make PR etc.

Now the images build but somehow "checkmate" command (underlying "horse" powering the solution) is not visible/accessible in the image

Please take a look, maybe you will have an idea what could be wrong.

Thanks in advance