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

61 lines
1.5 KiB
YAML
Raw Normal View History

2022-04-14 05:05:38 +00:00
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
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:28:25 +00:00
- name: Build
2022-05-10 05:08:45 +00:00
- run: |
chmod +x gradlew
./gradlew build --no-daemon
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2