forked from open-telemetry/opentelemetry-ebpf-profiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CodeQL analysis (open-telemetry#128)
- Loading branch information
1 parent
1a3a836
commit ac4289e
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: "21 6 * * 1" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze Go (${{ matrix.target_arch }}) | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
target_arch: [amd64, arm64] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up environment | ||
uses: ./.github/workflows/env | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: go | ||
|
||
- name: Build Artifact | ||
run: | | ||
make TARGET_ARCH=${{ matrix.target_arch }} | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:Go" | ||
timeout-minutes: 10 |