Skip to content

tracer: fix prefix matching #66

tracer: fix prefix matching

tracer: fix prefix matching #66

Workflow file for this run

name: CI
on:
push:
branches:
- master
- 'release/**'
pull_request:
jobs:
main:
env:
GOTOOLCHAIN: local
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-24.04 # Intel
go: 1.24.x
- runner: macos-13 # Intel
go: 1.24.x
- runner: macos-15 # ARM
# libgomodjail_hook_darwin is sensitive to Go version
go: 1.23.x
- runner: macos-15 # ARM
go: 1.24.x
runs-on: ${{ matrix.runner }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install
run: |
set -eux
make
sudo make install
- name: Unit tests
run: go test -v ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
- name: Smoke test
timeout-minutes: 5
run: |
set -eux
cd examples/victim
go build
gomodjail run --go-mod=go.mod -- ./victim
- name: "Smoke test: docker (not dockerd)"
if: runner.os == 'Linux'
timeout-minutes: 5
run: |
set -eux
DOCKER="gomodjail run --go-mod=./examples/profiles/docker.mod -- docker"
$DOCKER buildx create --name foo --use
cat <<EOF | $DOCKER buildx build -t foo --load -
FROM alpine
RUN apk add bash
EOF
$DOCKER run --rm foo /bin/bash -c "echo hi"