Skip to content

Commit

Permalink
Enable CodeQL analysis (open-telemetry#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockdaboot authored and florianl committed Aug 30, 2024
1 parent 1a3a836 commit ac4289e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codeql.yml
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

0 comments on commit ac4289e

Please sign in to comment.