Skip to content

Convert non blocking errors to warnings, remove tracee, fix linter issues #207

Convert non blocking errors to warnings, remove tracee, fix linter issues

Convert non blocking errors to warnings, remove tracee, fix linter issues #207

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: Linter
permissions:
contents: read
jobs:
golint:
name: Golint
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v4
with:
go-version: '^1.22'
- name: Configure private token
env:
GH_ACCESS_TOKEN: ${{ secrets.KUBESHARK_GO_MOD }}
run: |
git config --global url."https://${GH_ACCESS_TOKEN}:[email protected]/".insteadOf "https://github.com/"
- name: Install dependencies
run: |
apt update
apt install -y \
sudo \
curl \
build-essential \
xz-utils \
libpcap-dev \
clang \
llvm \
libbpf-dev \
libelf-dev
./install-capstone.sh
- name: Generate eBPF object files and Go bindings
run: make bpf
- name: Go lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=10m
go-version: '^1.21'