Skip to content

Commit 34d84c2

Browse files
authored
Create codeql.yaml
1 parent 2071303 commit 34d84c2

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '24 15 * * 5'
10+
11+
permissions: read-all
12+
13+
jobs:
14+
analyze:
15+
name: Analyze (${{ matrix.language }})
16+
runs-on: 'ubuntu-latest'
17+
permissions:
18+
# required for all workflows
19+
security-events: write
20+
21+
# required to fetch internal or private CodeQL packs
22+
packages: read
23+
24+
# only required for workflows in private repositories
25+
actions: read
26+
contents: read
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
include:
32+
- language: actions
33+
build-mode: none
34+
- language: python
35+
build-mode: none
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@9e907b5e64f6b83e7804b09294d44122997950d6 # v4
43+
with:
44+
languages: ${{ matrix.language }}
45+
build-mode: ${{ matrix.build-mode }}
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@9e907b5e64f6b83e7804b09294d44122997950d6 # v4
49+
with:
50+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)