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

Added yml to run codeql against project #7

Merged
merged 12 commits into from
Jan 31, 2024
Merged
20 changes: 20 additions & 0 deletions .github/actions/codeql-and-dependency-checks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run CodeQL and dependency review
description: Runs CodeQL checks as well as dependency checks for issues.

runs:
using: composite

steps:
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp, javascript

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

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

- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
updates:

- package-ecosystem: github-actions
directory: /
schedule:
interval: 'daily'
labels:
- github-actions

- package-ecosystem: docker
directory: /
schedule:
interval: 'weekly'
labels:
- docker

- package-ecosystem: nuget
directory: /
schedule:
interval: 'daily'
labels:
- nuget
5 changes: 4 additions & 1 deletion .github/workflows/code-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
jobs:

build-app:
name: Build and run unit tests
name: Build, check and run tests
runs-on: ubuntu-22.04

steps:
Expand All @@ -36,6 +36,9 @@ jobs:
with:
dotnet_version: ${{ env.DOTNET_VERSION }}
solution_filename: ${{ env.SOLUTION_NAME }}

- name: Run CodeQL and dependency checks
uses: ./.github/actions/codeql-and-dependency-checks

- name: Run unit tests
uses: ./.github/actions/run-unit-tests
Expand Down
Loading