|
1 | | -name: CodeQL |
| 1 | +# CodeQL Analysis Workflow |
| 2 | +# |
| 3 | +# NOTE: This workflow requires GitHub Advanced Security to be enabled. |
| 4 | +# To enable CodeQL scanning: |
| 5 | +# 1. Go to your repository on GitHub |
| 6 | +# 2. Click Settings > Code security and analysis |
| 7 | +# 3. Enable "Code scanning" |
| 8 | +# 4. Click "Set up" for CodeQL analysis |
| 9 | +# 5. Uncomment the workflow below |
| 10 | +# |
| 11 | +# For more information: https://docs.github.com/en/code-security/code-scanning |
2 | 12 |
|
3 | | -on: |
4 | | - push: |
5 | | - branches: [ master, main ] |
6 | | - pull_request: |
7 | | - branches: [ master, main ] |
8 | | - schedule: |
9 | | - - cron: '42 18 * * 1' |
10 | | - |
11 | | -jobs: |
12 | | - analyze: |
13 | | - name: Analyze |
14 | | - runs-on: 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', 'kotlin' ] |
24 | | - |
25 | | - steps: |
26 | | - - name: Checkout repository |
27 | | - uses: actions/checkout@v4 |
28 | | - |
29 | | - - name: Initialize CodeQL |
30 | | - uses: github/codeql-action/init@v3 |
31 | | - with: |
32 | | - languages: ${{ matrix.language }} |
33 | | - |
34 | | - - name: Set up JDK 22 |
35 | | - uses: actions/setup-java@v4 |
36 | | - with: |
37 | | - java-version: 22 |
38 | | - distribution: 'temurin' |
39 | | - |
40 | | - - name: Cache Gradle packages |
41 | | - uses: actions/cache@v4 |
42 | | - with: |
43 | | - path: | |
44 | | - ~/.gradle/caches |
45 | | - ~/.gradle/wrapper |
46 | | - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} |
47 | | - restore-keys: | |
48 | | - ${{ runner.os }}-gradle- |
49 | | -
|
50 | | - - name: Make gradlew executable |
51 | | - run: chmod +x gradlew |
52 | | - |
53 | | - - name: Build project |
54 | | - run: ./gradlew build -x test |
55 | | - |
56 | | - - name: Perform CodeQL Analysis |
57 | | - uses: github/codeql-action/analyze@v3 |
58 | | - with: |
59 | | - category: "/language:${{matrix.language}}" |
| 13 | +# Uncomment below when CodeQL is enabled: |
| 14 | +# |
| 15 | +# name: CodeQL |
| 16 | +# |
| 17 | +# on: |
| 18 | +# push: |
| 19 | +# branches: [ master, main ] |
| 20 | +# pull_request: |
| 21 | +# branches: [ master, main ] |
| 22 | +# schedule: |
| 23 | +# - cron: '42 18 * * 1' |
| 24 | +# |
| 25 | +# jobs: |
| 26 | +# analyze: |
| 27 | +# name: Analyze |
| 28 | +# runs-on: ubuntu-latest |
| 29 | +# permissions: |
| 30 | +# actions: read |
| 31 | +# contents: read |
| 32 | +# security-events: write |
| 33 | +# |
| 34 | +# strategy: |
| 35 | +# fail-fast: false |
| 36 | +# matrix: |
| 37 | +# language: [ 'java' ] |
| 38 | +# |
| 39 | +# steps: |
| 40 | +# - name: Checkout repository |
| 41 | +# uses: actions/checkout@v4 |
| 42 | +# |
| 43 | +# - name: Initialize CodeQL |
| 44 | +# uses: github/codeql-action/init@v3 |
| 45 | +# with: |
| 46 | +# languages: ${{ matrix.language }} |
| 47 | +# queries: security-and-quality |
| 48 | +# |
| 49 | +# - name: Set up JDK 22 |
| 50 | +# uses: actions/setup-java@v4 |
| 51 | +# with: |
| 52 | +# java-version: 22 |
| 53 | +# distribution: 'temurin' |
| 54 | +# |
| 55 | +# - name: Cache Gradle packages |
| 56 | +# uses: actions/cache@v4 |
| 57 | +# with: |
| 58 | +# path: | |
| 59 | +# ~/.gradle/caches |
| 60 | +# ~/.gradle/wrapper |
| 61 | +# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} |
| 62 | +# restore-keys: | |
| 63 | +# ${{ runner.os }}-gradle- |
| 64 | +# |
| 65 | +# - name: Make gradlew executable |
| 66 | +# run: chmod +x gradlew |
| 67 | +# |
| 68 | +# - name: Build project |
| 69 | +# run: ./gradlew build -x test |
| 70 | +# |
| 71 | +# - name: Perform CodeQL Analysis |
| 72 | +# uses: github/codeql-action/analyze@v3 |
| 73 | +# with: |
| 74 | +# category: "/language:${{matrix.language}}" |
0 commit comments