Skip to content

Commit 48d8af9

Browse files
authored
Merge pull request #618 from getsentry/mdtro/codeql
CodeQL configuration
2 parents 3b3ded7 + 43c0b63 commit 48d8af9

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/codeql/codeql-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: "Sentry CodeQL Config"
2+
3+
paths-ignore:
4+
- '**/tests/**'

.github/workflows/codeql.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
schedule:
9+
- cron: '36 14 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'python' ]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v3
28+
29+
# Initializes the CodeQL tools for scanning.
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v2
32+
with:
33+
languages: ${{ matrix.language }}
34+
35+
36+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
37+
# If this step fails, then you should remove it and run the build manually (see below)
38+
- name: Autobuild
39+
uses: github/codeql-action/autobuild@v2
40+
41+
# ℹ️ Command-line programs to run using the OS shell.
42+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
43+
44+
# If the Autobuild fails above, remove it and uncomment the following three lines.
45+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
46+
47+
# - run: |
48+
# echo "Run, Build Application using script"
49+
# ./location_of_script_within_repo/buildscript.sh
50+
51+
- name: Perform CodeQL Analysis
52+
uses: github/codeql-action/analyze@v2
53+
with:
54+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)