libbpf / ci

BPF CI
Other
7 stars 22 forks source link

ci: Download vmtest binary as root #125

Closed danobi closed 2 months ago

danobi commented 2 months ago

We were seeing permission issues on the kernel-patches/bpf-rc repo like this:

    Run libbpf/ci/run-vmtest@main
    Run BUILDDIR=$(realpath kbuild-output)
    Run curl -L https://github.com/chantra/danobi-vmtest/releases/download/v2.2.0/vmtest-$(uname -m) > /usr/bin/vmtest && chmod 755 /usr/bin/vmtest
    /home/runner/work/_temp/14c6d06a-568f-4cef-8b61-a2096f0485ed.sh: line 1: /usr/bin/vmtest: Permission denied

This is b/c kernel-patches/bpf runs on self-hosted runners where actions run as root. However, kernel-patches/bpf-ci runs on managed runners where actions are not given root by default.

Fix by ensuring root in both environments.