Skip to content

Commit

Permalink
Add CodeQL Scanning (#24)
Browse files Browse the repository at this point in the history
This PR adds a CodeQL scanning workflow to the project
  • Loading branch information
Kasper Nissen authored Aug 26, 2020
1 parent 9eb898a commit 51a54ff
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "CodeQL"

on:
push:
branches: [master, ]
pull_request:
branches: [master]
schedule:
- cron: '0 4 * * 3'

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

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2

- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v1

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 51a54ff

Please sign in to comment.