55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
name: CodeQL (daily)
|
|
|
|
on:
|
|
schedule:
|
|
# daily at 1:30 UTC
|
|
- cron: "30 1 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
|
|
jobs:
|
|
analyze:
|
|
permissions:
|
|
actions: read # for github/codeql-action/init to get workflow details
|
|
security-events: write # for github/codeql-action/analyze to upload SARIF results
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- name: Free disk space
|
|
run: .github/scripts/gha-free-disk-space.sh
|
|
|
|
- name: Set up Java 17
|
|
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17.0.6
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
|
|
with:
|
|
languages: java
|
|
# using "latest" helps to keep up with the latest Kotlin support
|
|
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433
|
|
tools: latest
|
|
|
|
- uses: gradle/gradle-build-action@3b1b3b9a2104c2b47fbae53f3938079c00c9bb87 # v3.0.0
|
|
with:
|
|
# skipping build cache is needed so that all modules will be analyzed
|
|
arguments: assemble -x javadoc --no-build-cache --no-daemon
|
|
|
|
- name: Perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
|
|
|
|
workflow-notification:
|
|
needs:
|
|
- analyze
|
|
if: always()
|
|
uses: ./.github/workflows/reusable-workflow-notification.yml
|
|
with:
|
|
success: ${{ needs.analyze.result == 'success' }}
|