Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dependabot and CodeQL #1

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,49 @@ name: CodeQL Analysis
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'

jobs:
analyze:
name: codeql-analysis
runs-on: windows-latest

steps:
- name: Setup .NET
id: setup_dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2

- name: Clean .NET cache
id: clean_dotnet_cache
shell: pwsh
run: |
dotnet clean ./ModernWpf.sln --configuration Release
dotnet nuget locals all --clear

- name: Install dependencies
id: dotnet_restore
shell: pwsh
run: |
dotnet restore

- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v1
with:
queries: security-and-quality

- name: Build project

- name: Build
id: dotnet_build
shell: pwsh
run: |
dotnet build --configuration Release --no-restore

- name: Perform CodeQL Analysis
id: analyze_codeql
Expand Down
166 changes: 0 additions & 166 deletions .github/workflows/main.yml

This file was deleted.

Loading