File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ jobs :
10+ analyze :
11+ name : Analyze
12+ runs-on : ubuntu-latest
13+
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ language : [ 'java' ]
18+
19+ steps :
20+ - name : Checkout repository
21+ uses : actions/checkout@v4
22+
23+ - name : Set up JDK
24+ uses : actions/setup-java@v3
25+ with :
26+ distribution : ' temurin'
27+ java-version : 21
28+
29+ - name : Cache Maven packages
30+ uses : actions/cache@v3
31+ with :
32+ path : ~/.m2/repository
33+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34+ restore-keys : |
35+ ${{ runner.os }}-maven-
36+
37+ - name : Initialize CodeQL
38+ uses : github/codeql-action/init@v1
39+ with :
40+ languages : ${{ matrix.language }}
41+
42+ - name : Build with Maven
43+ run : mvn -B package --file extra/pom.xml
44+
45+ - name : Perform CodeQL Analysis
46+ uses : github/codeql-action/analyze@v1
47+ with :
48+ category : " /language:${{ matrix.language }}"
You can’t perform that action at this time.
0 commit comments