feat(events): add open_file_ns and open_file_mount events #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL Advanced" | |
on: | |
push: | |
branches: | |
- "main" | |
- "v*.*.*" | |
pull_request: | |
branches: | |
- "main" | |
- "v*.*.*" | |
jobs: | |
analyze: | |
name: Analyze (${{ matrix.language }}) | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
packages: read | |
actions: read | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [c-cpp, go] | |
include: | |
- language: c-cpp | |
build-mode: autobuild | |
- language: go | |
build-mode: manual | |
goarch: amd64 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libelf-dev clang make gcc pkg-config | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- name: Set GO Environment (for Go only) | |
if: matrix.language == 'go' | |
run: | | |
echo "GOOS=linux" >> $GITHUB_ENV | |
echo "GOARCH=${{ matrix.goarch }}" >> $GITHUB_ENV | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
build-mode: ${{ matrix.build-mode }} | |
- name: Manual Build for Go | |
if: matrix.language == 'go' | |
run: | | |
make | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:${{ matrix.language }}" |