Skip to content

Commit 6e9aac7

Browse files
Merge pull request #10 from Arnab-Developer/codeql
Codeql
2 parents 0568c69 + ddd6c32 commit 6e9aac7

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
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, 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, codeql-analysis]
6888
environment:
6989
name: Dockerhub
7090
url: https://hub.docker.com/r/45862391/httphealthcheckdashboard

HttpHealthCheckDashboard/HttpHealthCheckDashboard.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Arc.HttpHealthCheckDashboard.DI" Version="1.0.5" />
11-
<PackageReference Include="AspNetCore.HealthChecks.UI" Version="6.0.1-rc2.4" />
12-
<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="6.0.1-rc2.4" />
13-
<PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="6.0.1-rc2.4" />
11+
<PackageReference Include="AspNetCore.HealthChecks.UI" Version="6.0.4" />
12+
<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="6.0.4" />
13+
<PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="6.0.4" />
1414
</ItemGroup>
1515

1616
</Project>

0 commit comments

Comments
 (0)