Skip to content

Commit c025c7d

Browse files
committed
Add code scanning with CodeQL
1 parent 42330f2 commit c025c7d

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Static code analysis
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
workflow_dispatch:
9+
10+
jobs:
11+
codeql:
12+
name: Scan code with CodeQL
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 2
20+
21+
# For PRs, checkout the PR's head instead of the merge commit.
22+
- name: Checkout pull request head
23+
if: github.event_name == 'pull_request'
24+
run: git checkout HEAD^2
25+
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v1
28+
with:
29+
languages: python
30+
queries: security-and-quality
31+
32+
- name: Perform CodeQL analysis
33+
uses: github/codeql-action/analyze@v1

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
![Functional tests](https://github.com/dassencio/mapgen/workflows/Functional%20tests/badge.svg)
2+
![Static code analysis](https://github.com/dassencio/mapgen/workflows/Static%20code%20analysis/badge.svg)
23

34
# Description
45

0 commit comments

Comments
 (0)