Skip to content

Commit

Permalink
Add CodeQL analysis workflow (#40)
Browse files Browse the repository at this point in the history
* Add CodeQL analysis workflow
  • Loading branch information
simonhkswan authored Apr 27, 2022
1 parent 15e271b commit 5edc290
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/code-ql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: "CodeQL Python Config"

disable-default-queries: true
source-root: src/synthesized_insight
queries:
- uses: security-and-quality
...
27 changes: 27 additions & 0 deletions .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "CodeQL"

on:
push:
branches: [ master ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- uses: github/codeql-action/init@v2
with:
languages: python
config-file: ./.github/code-ql-config.yml

- uses: github/codeql-action/analyze@v2
...

0 comments on commit 5edc290

Please sign in to comment.