Skip to content

fix(backend): enable process filtering for the cgroup-skb backend (… #400

fix(backend): enable process filtering for the cgroup-skb backend (…

fix(backend): enable process filtering for the cgroup-skb backend (… #400

Workflow file for this run

name: release-test
on:
workflow_dispatch:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
permissions:
contents: read
jobs:
release-test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
with:
go-version: '1.23.6'
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6
with:
distribution: goreleaser
version: '~> v2'
args: release --snapshot --clean --skip=publish -p 1
- name: Test binary
run: |
mkdir amd64 && tar zxvf dist/ptcpdump_v0.0.0-next_linux_amd64.tar.gz -C amd64
mkdir arm64 && tar zxvf dist/ptcpdump_v0.0.0-next_linux_arm64.tar.gz -C arm64
./amd64/ptcpdump --version
file ./amd64/ptcpdump |grep x86-64 |grep 'statically linked'
file ./arm64/ptcpdump |grep aarch64 |grep 'statically linked'
- name: Run govulncheck for binary
run: |
set -xe
govulncheck -mode=binary -show verbose -scan module ./amd64/ptcpdump
govulncheck -mode=binary -show verbose -scan module ./arm64/ptcpdump
- name: Store Releases
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: ptcpdump_v0.0.0-next_linux_amd64.tar.gz
path: dist/ptcpdump_v0.0.0-next_linux_amd64.tar.gz
- name: Store Releases
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: ptcpdump_v0.0.0-next_linux_arm64.tar.gz
path: dist/ptcpdump_v0.0.0-next_linux_arm64.tar.gz