Skip to content

Commit

Permalink
[skip-ci] Setup codeql-analysis.yml (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinchilson authored Nov 26, 2020
1 parent b02c1ed commit f186822
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI-Build
name: ci

on:
push:
Expand Down
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-analysis"
on:
pull_request:
schedule:
- cron: '0 14 * * 4'
jobs:
build:
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
with:
languages: csharp

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100'

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

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

0 comments on commit f186822

Please sign in to comment.