Skip to content

Commit 120f1e9

Browse files
authored
Update docker-image.yml
1 parent b19b0b0 commit 120f1e9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
needs: analyze
1213

1314
steps:
1415
- name: Checkout repository
@@ -30,3 +31,31 @@ jobs:
3031
context: .
3132
push: true
3233
tags: manojkumar8008/javafile:123
34+
analyze:
35+
name: Analyze
36+
runs-on: ubuntu-latest
37+
38+
permissions:
39+
security-events: write # Required for CodeQL to upload results
40+
actions: read
41+
contents: read
42+
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
language: [ 'java' ]
47+
48+
steps:
49+
- name: Checkout repository
50+
uses: actions/checkout@v4
51+
52+
- name: Initialize CodeQL
53+
uses: github/codeql-action/init@v3
54+
with:
55+
languages: ${{ matrix.language }}
56+
57+
- name: Build with Gradle/Maven
58+
run: mvn compile
59+
60+
- name: Perform CodeQL Analysis
61+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)