Skip to content

Commit 30742fe

Browse files
authored
Merge pull request #4510 from vvbandeira/add-codeql
ci: add CodeQL analysis workflow
2 parents d86d1f2 + a51579c commit 30742fe

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
schedule:
11+
- cron: '30 3 * * 1'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
analyze:
18+
name: Analyze ${{ matrix.language }}
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [actions, python, ruby]
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
34+
with:
35+
languages: ${{ matrix.language }}
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
39+
with:
40+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)