File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ # GitHub automatic code security scanning using CodeQL
2+
3+ # Human readable name in the actions tab
4+ name : " CodeQL"
5+
6+ on :
7+ # Scan only for push on the primary branch for now
8+ push :
9+ branches : [ main ]
10+ pull_request :
11+ branches : [ main ]
12+
13+ jobs :
14+ # job i
15+ analyze :
16+
17+ # Display name
18+ name : Analyze
19+
20+ # Environment
21+ runs-on : ubuntu-latest
22+
23+ permissions :
24+ actions : read
25+ contents : read
26+ security-events : write
27+
28+ strategy :
29+ fail-fast : false
30+ matrix :
31+ # Languages to scan
32+ language : [ 'java' ]
33+
34+ steps :
35+ - name : Checkout repository
36+ uses : actions/checkout@v2
37+
38+ # Initializes the CodeQL tools for scanning.
39+ - name : Initialize CodeQL
40+ uses : github/codeql-action/init@v1
41+ with :
42+ languages : ${{ matrix.language }}
43+
44+ # Cache build process too like in the maven config
45+ 46+ with :
47+ path : ~/.m2/repository
48+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
49+ restore-keys : |
50+ ${{ runner.os }}-maven-
51+
52+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
53+ # If this step fails, then you should remove it and run the build manually (see below)
54+ - name : Autobuild
55+ uses : github/codeql-action/autobuild@v1
56+
57+ - name : Perform CodeQL Analysis
58+ uses : github/codeql-action/analyze@v1
You can’t perform that action at this time.
0 commit comments