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-05-13 15:41:14 +00:00
|
|
|
uses: github/codeql-action/init@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
|
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-05-13 15:41:14 +00:00
|
|
|
uses: github/codeql-action/analyze@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
|
2023-04-20 09:31:01 +00:00
|
|
|
with:
|
|
|
|
category: "/language:java"
|