Skip to content

Commit 31be040

Browse files
Add codeql
1 parent 4750827 commit 31be040

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,31 @@ jobs:
3434
- name: Docker build
3535
run: docker build -f 'HttpHealthCheckDashboard/Dockerfile' -t docker.pkg.github.com/arnab-developer/httphealthcheckdashboard/httphealthcheckdashboard:2.0.6 .
3636

37+
codeql-analysis:
38+
name: CodeQL analysis
39+
runs-on: ubuntu-latest
40+
permissions:
41+
security-events: write
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v2
45+
46+
- name: Initialize CodeQL
47+
uses: github/codeql-action/init@v1
48+
with:
49+
languages: csharp
50+
51+
- name: Autobuild
52+
uses: github/codeql-action/autobuild@v1
53+
54+
- name: Perform CodeQL Analysis
55+
uses: github/codeql-action/analyze@v1
56+
3757
github-package-deploy:
3858
if: ${{ github.event_name == 'push' }}
3959
name: GitHub package deploy
4060
runs-on: ubuntu-latest
41-
needs: build
61+
needs: [build-test, codeql-analysis]
4262
steps:
4363
- name: Checkout code
4464
uses: actions/checkout@v2
@@ -64,7 +84,7 @@ jobs:
6484
if: ${{ github.event_name == 'release' }}
6585
name: Dockerhub deploy
6686
runs-on: ubuntu-latest
67-
needs: build
87+
needs: [build-test, codeql-analysis]
6888
environment:
6989
name: Dockerhub
7090
url: https://hub.docker.com/r/45862391/httphealthcheckdashboard

0 commit comments

Comments
 (0)