]> git.gsnw.org Git - ftraceroute.git/commitdiff
CodeQL via GitHub Action
authorGerman Service Network <support@gsnw.de>
Sun, 25 Jan 2026 16:59:37 +0000 (17:59 +0100)
committerGerman Service Network <support@gsnw.de>
Sun, 25 Jan 2026 16:59:37 +0000 (17:59 +0100)
.github/workflows/codeql-analysis.yaml [new file with mode: 0644]

diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml
new file mode 100644 (file)
index 0000000..9d5138e
--- /dev/null
@@ -0,0 +1,36 @@
+name: "CodeQL"
+
+on:
+  push:
+    branches: [ main ]
+  schedule:
+    - cron: '38 4 * * 3'
+
+jobs:
+  analyze:
+    name: Analyze
+    runs-on: ubuntu-latest
+    permissions:
+      actions: read
+      contents: read
+      security-events: write
+
+    strategy:
+      fail-fast: false
+      matrix:
+        language: [ 'cpp' ]
+
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v6
+
+    - name: Initialize CodeQL
+      uses: github/codeql-action/init@v4
+      with:
+        languages: ${{ matrix.language }}
+
+    - name: Autobuild
+      uses: github/codeql-action/autobuild@v4
+
+    - name: Perform CodeQL Analysis
+      uses: github/codeql-action/analyze@v4
\ No newline at end of file