mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
87 lines
2.4 KiB
YAML
87 lines
2.4 KiB
YAML
name: Code quality analysis
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- renovate/**
|
|
schedule:
|
|
- cron: '31 7 * * 3'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
codeql:
|
|
name: CodeQL
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: 18
|
|
|
|
- name: Setup Gradle caching
|
|
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
|
|
with:
|
|
gradle-home-cache-cleanup: true
|
|
cache-read-only: true
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2.22.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@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2.22.8
|
|
with:
|
|
category: "/language:java"
|
|
mobsfscan:
|
|
name: MobSF
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: 18
|
|
|
|
- name: Setup Gradle caching
|
|
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
|
|
with:
|
|
gradle-home-cache-cleanup: true
|
|
cache-read-only: true
|
|
|
|
- name: Setup python
|
|
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: Run mobsfscan
|
|
uses: MobSF/mobsfscan@b8503e0027d134f55cc3306582efbbbeaa96c7ba
|
|
with:
|
|
args: . --sarif --output results.sarif || true
|
|
|
|
- name: Upload mobsfscan report
|
|
uses: github/codeql-action/upload-sarif@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2
|
|
with:
|
|
sarif_file: results.sarif
|