mirror of
https://github.com/msfjarvis/compose-lobsters.git
synced 2024-06-03 04:18:58 +05:30
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
name: Code quality analysis
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- renovate/**
|
|
schedule:
|
|
- cron: '31 7 * * 3'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
codeql:
|
|
name: CodeQL
|
|
runs-on: macos-14
|
|
steps:
|
|
- name: Setup build environment
|
|
uses: msfjarvis/compose-lobsters/.github/reusable-workflows/setup-gradle@main
|
|
with:
|
|
fetch-depth: 0
|
|
cache-read-only: true
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
|
|
with:
|
|
languages: java
|
|
tools: latest
|
|
queries: +security-extended
|
|
|
|
- name: Build project
|
|
shell: bash
|
|
run: |
|
|
./gradlew assembleDebug assembleInternal
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
|
|
with:
|
|
category: "/language:java"
|
|
mobsfscan:
|
|
name: MobSF
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
|
- name: Setup python
|
|
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: Run mobsfscan
|
|
uses: MobSF/mobsfscan@849b749e7f3244c7b4f418ff858a9fa4e1406115
|
|
with:
|
|
args: . --sarif --output results.sarif || true
|
|
|
|
- name: Upload mobsfscan report
|
|
uses: github/codeql-action/upload-sarif@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
|
|
with:
|
|
sarif_file: results.sarif
|