This is a Github Action that will run zkg install on a Zeek
package. It currently runs Debian 10 via Docker, but we may broaden
support to additional distros and platforms via branches.
Test the local Zeek package sources at verion tag latest, using the
latest Zeek nightly build:
- uses: ckreibich/action-zkg-install
with:
pkg_version: 'latest'
zeek_version: 'zeek-nightly'The action supports the following inputs:
-
pkg: the name, URL, or path of the package to install. Defaults to ".", meaning that by default it will install the local repository, assuming we're running this action on a Zeek package repo. -
pkg_version: the version of the package. This defaults to using zkg's package-determination algorithm, but you can also provide a tag, branch, or SHA-1 commit has.If you're using
actions/checkoutto clone the repository and request a specific tag, you'll need to includewith: fetch-depth: 0so the complete history is available in the clone. -
pkg_sysdeps: additional Debian packages to install in order to satisfy external dependencies required by the package. -
zeek_version: the Zeek version to use, as defined by the SuSE OBS builds we maintain:zeekfor the latest release,zeek-ltsfor the latest long-term-support release, andzeek-nightlyfor the latest nightly Zeek build.
On failure, the action collects zkg logs in case you'd like to process them
into artifacts, output them, etc. After the action completes, the logs reside in
${{ github.workspace }}/.action-zkg-install/artifacts.
The contained Docker image works as a standalone setup for testing
Zeek packages. See docker run -it <image> --help for details once
you've build the image.