Plex/.github/workflows/codeql-analysis.yml

48 lines
1019 B
YAML
Raw Normal View History

2022-04-14 05:05:38 +00:00
name: "CodeQL"
on:
push:
branches: [ master, server ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
2022-06-08 19:28:25 +00:00
- cron: '30 4 * * *'
2022-04-14 05:05:38 +00:00
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
2022-06-08 19:28:25 +00:00
java: [17]
2022-04-14 05:05:38 +00:00
steps:
2022-05-10 05:08:45 +00:00
- name: Checkout repository
uses: actions/checkout@v3
2022-04-14 05:05:38 +00:00
2022-06-08 19:28:25 +00:00
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
2022-05-10 05:08:45 +00:00
with:
distribution: temurin
2022-06-08 19:28:25 +00:00
java-version: ${{ matrix.java }}
2022-05-10 05:08:45 +00:00
cache: gradle
2022-04-14 05:05:38 +00:00
2022-05-10 05:08:45 +00:00
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
2022-04-14 05:05:38 +00:00
2022-06-08 19:32:09 +00:00
- name: Autobuild
2022-06-08 19:33:04 +00:00
uses: github/codeql-action/autobuild@v2
2022-05-10 05:08:45 +00:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2