File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CodeQL
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+ schedule :
9
+ - cron : ' 0 8 * * *'
10
+
11
+ jobs :
12
+ analyze :
13
+ name : Analyze
14
+ runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15
+ permissions :
16
+ actions : read
17
+ contents : read
18
+ security-events : write
19
+
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ language : [ 'java' ]
24
+
25
+ steps :
26
+ - name : Checkout repository
27
+ uses : actions/checkout@v3
28
+
29
+ - name : Initialize CodeQL
30
+ uses : github/codeql-action/init@v2
31
+ with :
32
+ languages : ${{ matrix.language }}
33
+
34
+ - name : Set up JDK 17 environment
35
+ uses : actions/setup-java@v3
36
+ with :
37
+ java-version : ' 17'
38
+ distribution : ' temurin'
39
+ cache : gradle
40
+
41
+ - name : Grant execute permission for Gradle Wrapper
42
+ run : chmod +x gradlew
43
+
44
+ - name : Build with Gradle
45
+ run : ./gradlew build
46
+
47
+ - name : Perform CodeQL Analysis
48
+ uses : github/codeql-action/analyze@v2
49
+ with :
50
+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments