Skip to content

Commit

Permalink
Add CodeQL for code analysis (#331)
Browse files Browse the repository at this point in the history
* Create codeql-analysis.yml

* Fix review workflow
  • Loading branch information
jefmoura committed Nov 18, 2020
1 parent 9fec592 commit 2839541
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/codeql-analysis.yml
@@ -0,0 +1,33 @@
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '28 15 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
1 change: 1 addition & 0 deletions .github/workflows/review.yml
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libsasl2-dev libldap2-dev libssl-dev
sudo touch /var/log/buildly.log
sudo chown runner:docker /var/log/buildly.log
Expand Down

0 comments on commit 2839541

Please sign in to comment.