mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 23:27:04 +05:30
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: CodeQL
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- renovate/**
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '31 7 * * 3'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: 18
|
|
|
|
- name: Setup Gradle caching
|
|
uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc # v2.8.0
|
|
with:
|
|
gradle-home-cache-cleanup: true
|
|
cache-read-only: true
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8
|
|
with:
|
|
languages: java
|
|
tools: latest
|
|
queries: +security-extended
|
|
|
|
- name: Build project
|
|
shell: bash
|
|
run: |
|
|
./gradlew assembleDebug assembleRelease
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8
|
|
with:
|
|
category: "/language:java"
|