2022-10-08 11:34:25 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
on:
|
2023-06-06 22:51:56 +00:00
|
|
|
push:
|
|
|
|
branches: [main]
|
2022-10-08 11:34:25 +00:00
|
|
|
pull_request:
|
|
|
|
# The branches below must be a subset of the branches above
|
2023-03-06 12:51:53 +00:00
|
|
|
branches: [main]
|
2022-10-08 11:34:25 +00:00
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-03-06 12:51:53 +00:00
|
|
|
language: ['java']
|
2022-10-08 11:34:25 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2023-06-04 10:34:03 +00:00
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: temurin
|
|
|
|
cache: gradle
|
|
|
|
java-version: 17
|
2022-10-08 11:34:25 +00:00
|
|
|
- name: Initialize CodeQL
|
2023-04-07 13:12:55 +00:00
|
|
|
uses: github/codeql-action/init@v2
|
2022-10-08 11:34:25 +00:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Autobuild
|
2023-04-07 13:12:55 +00:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2022-10-08 11:34:25 +00:00
|
|
|
- name: Perform CodeQL Analysis
|
2023-04-07 13:12:55 +00:00
|
|
|
uses: github/codeql-action/analyze@v2
|