Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Work by design #15

Merged
merged 6 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/DISCUSSION_TEMPLATE/adopters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
title: "<company name>"
labels: ["adopters"]
body:
- type: textarea
id: info
attributes:
label: "[Optional] How do you use Tracee?"
validations:
required: false
- type: textarea
id: info
attributes:
label: "[Optional] Can you provide us with a quote on your favourite part of Tracee? This may be used in marketing material."
validations:
required: false
- type: checkboxes
attributes:
label: "[Optional] What type of events are you monitoring (see https://aquasecurity.github.io/tracee/latest/docs/events/)?"
options:
- label: "security"
- label: "network"
- label: "lsm"
- label: "containers"
- label: "misc"
- label: "syscalls"
- label: "custom"
- type: markdown
attributes:
value: |
## Get in touch
We are always looking for
* User feedback
* Collaboration with other companies and organisations
* Or just to have a chat with you about Tracee.
If any of this interests you or your marketing team, please reach out at: oss@aquasec.com
We would love to hear from you!
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug Report
labels: kind/bug
about: If something isn't working as expected.
---

## Description

<!-- include steps to reproduce, error message you received, etc -->

## Output of `tracee version`:

```
(paste your output here)
```

## Output of `uname -a`:

```
(paste your output here)
```

## Additional details

10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/DOCUMENTATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Documentation
labels: kind/documentation
about: content related suggestion, including docs, readme
---

<!--
What is your suggestion?
-->

10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Feature Request
labels: kind/feature
about: I have a suggestion
---

<!--
Describe in detail what is the new functionality. How is the user experience affected?
-->

38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/custom.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

31 changes: 31 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
Checklist:

1. Make sure the PR fixes an issue, if that is the case, so issue can be closed.
2. Flag your PR with at least one label "kind/xxx".
3. Flag your PR with at least one label "area/xxx".
4. Do not use "kind/feature" without explicitly adding a release feature.
5. Add "milestone/v0.x.y" label if you want it in milestone 0.x.y.
6. Make sure all tests pass before asking for review.
7. Explicitly asking a maintainer for review might block you more time.
8. Be mindful about rebases, try to provide them asap so merges can be done.

PS: DO NOT JUMP THE CHECKLIST. GO BACK AND READ, ALWAYS!
-->

# 1. Explain what the PR does

<!-- Best advice is to put copy & paste "make check-pr" PR Comment output -->

# 2. Explain how to test it

<!--
Maintainer will review the code, and test the fix/feature, how to run Tracee ?
Give a full command line example and what to look for.
-->

# 3. Other comments

<!--
Links? References? Anything pointing to more context about the change.
-->
100 changes: 100 additions & 0 deletions .github/actions/build-dependencies/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Build Dependencies
description: |
Install build dependencies to test and compile tracee artifacts
runs:
using: composite
steps:
- name: Install Base Packages
run: |
sudo apt-get update
sudo apt-get install -y bsdutils build-essential pkgconf
sudo apt-get install -y zlib1g-dev libelf-dev libzstd-dev
sudo apt-get install -y software-properties-common
shell: bash
- name: Install Golang
run: |
sudo rm -f /usr/bin/go
sudo rm -f /usr/bin/gofmt
curl -L -o /tmp/golang.tar.gz https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf /tmp/golang.tar.gz
sudo ln -s /usr/local/go/bin/go /usr/bin/go
sudo ln -s /usr/local/go/bin/gofmt /usr/bin/gofmt
shell: bash
- name: Install Clang Format 12
run: |
sudo rm -f /usr/bin/clang-format-12
curl -L -o /tmp/clang-format-12 https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-f4f85437/clang-format-12.0.1_linux-amd64
sudo mv /tmp/clang-format-12 /usr/bin/clang-format-12
sudo chmod 755 /usr/bin/clang-format-12
shell: bash
- name: Install Clang
run: |
sudo rm -f /usr/bin/cc
sudo rm -f /usr/bin/clang
sudo rm -f /usr/bin/clang++
sudo rm -f /usr/bin/llc
sudo rm -f /usr/bin/lld
sudo rm -f /usr/bin/clangd
sudo rm -f /usr/bin/clang-format
sudo rm -f /usr/bin/llvm-strip
sudo rm -f /usr/bin/llvm-config
sudo rm -f /usr/bin/ld.lld
sudo rm -f /usr/bin/llvm-ar
sudo rm -f /usr/bin/llvm-nm
sudo rm -f /usr/bin/llvm-objcopy
sudo rm -f /usr/bin/llvm-objdump
sudo rm -f /usr/bin/llvm-readelf
sudo rm -f /usr/bin/opt
curl -L -o /tmp/clang.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/clang+llvm-14.0.6-x86_64-linux-gnu-rhel-8.4.tar.xz
sudo tar -C /usr/local -xJf /tmp/clang.tar.xz
sudo mv "/usr/local/clang+llvm-14.0.6-x86_64-linux-gnu-rhel-8.4" /usr/local/clang
sudo ln -s /usr/local/clang/bin/clang /usr/bin/clang
sudo ln -s /usr/local/clang/bin/clang++ /usr/bin/clang++
sudo ln -s /usr/local/clang/bin/clangd /usr/bin/clangd
sudo ln -s /usr/local/clang/bin/clang-format /usr/bin/clang-format
sudo ln -s /usr/local/clang/bin/lld /usr/bin/lld
sudo ln -s /usr/local/clang/bin/llc /usr/bin/llc
sudo ln -s /usr/local/clang/bin/llvm-strip /usr/bin/llvm-strip
sudo ln -s /usr/local/clang/bin/llvm-config /usr/bin/llvm-config
sudo ln -s /usr/local/clang/bin/ld.lld /usr/bin/ld.lld
sudo ln -s /usr/local/clang/bin/llvm-ar /usr/bin/llvm-ar
sudo ln -s /usr/local/clang/bin/llvm-nm /usr/bin/llvm-nm
sudo ln -s /usr/local/clang/bin/llvm-objcopy /usr/bin/llvm-objcopy
sudo ln -s /usr/local/clang/bin/llvm-objdump /usr/bin/llvm-objdump
sudo ln -s /usr/local/clang/bin/llvm-readelf /usr/bin/llvm-readelf
sudo ln -s /usr/local/clang/bin/opt /usr/bin/opt
shell: bash
- name: Install OPA
run: |
sudo curl -L -o /usr/bin/opa https://github.com/open-policy-agent/opa/releases/download/v0.63.0/opa_linux_amd64_static
sudo chmod 755 /usr/bin/opa
shell: bash
- name: Install staticchecker
run: |
GOROOT=/usr/local/go GOPATH=$HOME/go go install honnef.co/go/tools/cmd/staticcheck@2023.1.7
sudo cp $HOME/go/bin/staticcheck /usr/bin/
shell: bash
- name: Install revive
run: |
GOROOT=/usr/local/go GOPATH=$HOME/go go install github.com/mgechev/revive@e33fb87
sudo cp $HOME/go/bin/revive /usr/bin/
shell: bash
- name: Install goimports-reviser
run: |
GOROOT=/usr/local/go GOPATH=$HOME/go go install github.com/incu6us/goimports-reviser/v3@v3.6.5
sudo cp $HOME/go/bin/goimports-reviser /usr/bin/
shell: bash
- name: Install errcheck
run: |
GOROOT=/usr/local/go GOPATH=$HOME/go go install github.com/kisielk/errcheck@v1.7.0
sudo cp $HOME/go/bin/errcheck /usr/bin/
shell: bash
- name: Install docker
run: |
sudo apt-get install --yes ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get --yes update
sudo apt-get install --yes docker-ce docker-ce-cli containerd.io
shell: bash
84 changes: 84 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#
# area
#
# area/grpc
area/grpc:
- pkg/server/grpc/**
- pkg/server/grpc/**/*
# area/api
area/api:
- api/**
- api/**/*
# area/arm64:
area/build:
- builder/**
- "**/Makefile"
- "**/Dockerfile"
- go.sum
- go.mod
- staticcheck.conf
- .github/**
- .clang-format
- .dockerignore
area/capture:
- "*capture*"
# area/co-re:
area/ebpf:
- pkg/ebpf/*
- pkg/ebpf/**/*
area/events:
- pkg/events/*
- pkg/events/**/*
area/filtering:
- pkg/filters/*
- pkg/filters/**/*
area/flags:
- pkg/cmd/flags/*
- pkg/cmd/flags/**/*
area/kubernetes:
- deploy/*
- deploy/**/*
area/logging:
- pkg/logger/*
- pkg/logger/**/*
- pkg/errfmt/*
- pkg/errfmt/**/*
# area/network:
area/performance:
- pkg/metrics/*
- pkg/metrics/**/*
area/release:
- packaging/*
- packaging/**/*
# area/rules:
area/signatures:
- pkg/signatures/*
- pkg/signatures/**/*
- signatures/*
- signatures/**/*
- "**/*.rego"
area/testing:
- tests/*
- tests/**/*
- "**/*_test.go"
- "**/*_test.rego"
# area/uprobe:
area/UX:
- pkg/cmd/*
- pkg/cmd/**/*
- cmd/*
- cmd/**/*
#
# kind
#
kind/documentation:
- docs/*
- docs/**/*
- "**/*.md"
- mkdocs.yml
- NOTICE
- LICENSE
- cmd/tracee-gptdocs/*
# kind/bug:
# kind/chore:
# kind/feature:
18 changes: 18 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# When a PR is opened: Automatically assign author
#
name: "Auto Assign"
on:
#issues:
# types: [opened, reopened]
pull_request_target:
types: [opened, reopened]
permissions:
#issues: write
pull-requests: write
jobs:
assign:
name: Assign Author
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@ebd30f10fb56e46eb0759a14951f36991426fed0 # v2.1.0
Loading