Skip to content

Commit

Permalink
Merge pull request #7 from DFE-Digital/feature/implement-codeql-and-d…
Browse files Browse the repository at this point in the history
…ependabot

Added yml to run codeql against project
  • Loading branch information
DanielClarkeEducation authored Jan 31, 2024
2 parents 70e0db4 + 66efc8f commit 9cc4dd6
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
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

0 comments on commit 9cc4dd6

Please sign in to comment.