I left Github a while ago and have been relying on simple pre-push scripts in my workflow, but would like to be able to test PRs from others without putting my machine at risk. Besides codeberg and radicle (neither of which have reliable CI), I also have a build machine, where I could run CI jobs, however it is important that the CI jobs can also run locally so that external people do not require access to the build machine.

Is there a CI that can do those things (run locally and remotely)?

Anti Commercial-AI license

  • drspod@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    15 hours ago

    would like to be able to test PRs from others without putting my machine at risk

    I know what you mean, but do you not read the diff? Are you working on codebases that are so obfuscated that you can’t spot a malicious command?

    • onlinepersonaOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      4 hours ago

      What if they pull in a new dependency with a CVE or that executes malicious code? How am I supposed to check that? Or what if I miss a bug in the justfile or shell script?

      Anti Commercial-AI license

      • anton@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        3 hours ago

        Run your CI in a sandbox.
        For example gitlab allows you to run in a docker image.
        Unless the attacker knows a docker CVE or is willing to waste a specter style 0-day on you, the most they can do is waste your cpu cycles.

        • timbuck2themoon@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          3 hours ago

          Yep. Hell, be very paranoid and run it in a container on a runner VM on your box if you like.

          And you can use podman or sysbox there.