Revert "fix(notify): Handle case with undefined variable (#32165)" #93218
Workflow file for this run
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: "Code Scanning - Action" | |
on: | |
push: | |
branches: | |
- main | |
- "[0-9]+.[0-9]+.x" | |
pull_request: | |
branches: | |
- main | |
- "[0-9]+.[0-9]+.x" | |
permissions: {} | |
jobs: | |
CodeQL-Build: | |
runs-on: ubuntu-20.04 | |
permissions: | |
security-events: write | |
strategy: | |
matrix: | |
language: ["go", "javascript", "python", "cpp"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Python3 | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: "3.12.6" | |
cache: "pip" | |
- run: pip3 install -r requirements.txt | |
- name: Setup env variables | |
run: | | |
echo "CGO_LDFLAGS= -L${GITHUB_WORKSPACE}/rtloader/build/rtloader -ldl " >> $GITHUB_ENV | |
echo "CGO_CFLAGS= -I${GITHUB_WORKSPACE}/rtloader/include -I${GITHUB_WORKSPACE}/rtloader/common " >> $GITHUB_ENV | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: ".go-version" | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9 | |
with: | |
languages: ${{ matrix.language }} | |
config: | | |
paths-ignore: | |
- rtloader/build/rtloader/CMakeFiles/datadog-agent-rtloader.dir | |
- rtloader/build/three/CMakeFiles/datadog-agent-three.dir | |
- rtloader/build/test/CMakeFiles/run.dir | |
- rtloader/build/CMakeFiles/clang-format.dir | |
- name: Set Swap Space | |
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c | |
with: | |
swap-size-gb: 10 | |
- name: Build DataDog agent | |
run: | | |
invoke install-tools | |
invoke deps | |
invoke agent.build --build-exclude=systemd | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9 |