2023-04-20 09:31:01 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2023-08-24 04:57:35 +00:00
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - develop
|
|
|
|
# pull_request:
|
|
|
|
# branches:
|
|
|
|
# - develop
|
2023-04-20 09:31:01 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
SENTRY_DSN: 'https://public_key@example.com/project_id'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
steps:
|
2024-04-13 09:15:08 +00:00
|
|
|
- name: Setup build environment
|
|
|
|
uses: android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop
|
2023-04-20 09:31:01 +00:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2024-09-13 16:24:46 +00:00
|
|
|
uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
|
2023-04-20 09:31:01 +00:00
|
|
|
with:
|
|
|
|
languages: java
|
|
|
|
tools: latest
|
|
|
|
queries: +security-extended
|
|
|
|
|
|
|
|
- name: Build project
|
2024-04-13 09:15:08 +00:00
|
|
|
shell: bash
|
|
|
|
run: ./gradlew assembleNonFreeRelease
|
2023-04-20 09:31:01 +00:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2024-09-13 16:24:46 +00:00
|
|
|
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
|
2023-04-20 09:31:01 +00:00
|
|
|
with:
|
|
|
|
category: "/language:java"
|