Skip to content

Commit

Permalink
test: add a CodeQL runner
Browse files Browse the repository at this point in the history
Let's see what it finds.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
smira committed Sep 18, 2024
1 parent 7bd26df commit 641d504
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "CodeQL Advanced"

on:
push:
branches: [ "main", "release-*" ]
pull_request:
branches: [ "main", "release-*" ]
schedule:
- cron: '23 3 * * 3'

jobs:
analyze:
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
name: Analyze (${{ matrix.language }})
runs-on:
- self-hosted
- talos
permissions:
security-events: write

strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: autobuild
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit 641d504

Please sign in to comment.