summaryrefslogtreecommitdiff
path: root/.github/workflows/codeql.yml
blob: d4d9d589c6242ac88c906fdf6a3b352d9b4d9178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "CodeQL"

on:
  push:
    branches: ["main"]
  pull_request:
    branches: ["main"]
  schedule:
    - cron: "0 0 * * 5"

permissions: "read-all"

jobs:
  analyze:
    name: "Analyze"
    runs-on: "ubuntu-latest"
    permissions:
      actions: read
      contents: read
      security-events: write
    steps:
    - name: "Checkout repository"
      uses: "actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b"

    - name: "Run CodeQL init"
      uses: "github/codeql-action/init@17573ee1cc1b9d061760f3a006fc4aac4f944fd5"
      with:
        config-file: "./.github/codeql.yml"
        languages: "python"

    - name: "Run CodeQL autobuild"
      uses: "github/codeql-action/autobuild@17573ee1cc1b9d061760f3a006fc4aac4f944fd5"

    - name: "Run CodeQL analyze"
      uses: "github/codeql-action/analyze@17573ee1cc1b9d061760f3a006fc4aac4f944fd5"