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-08-22 03:19:36 +00:00
|
|
|
uses: github/codeql-action/init@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
|
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-08-22 03:19:36 +00:00
|
|
|
uses: github/codeql-action/analyze@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
|
2023-04-20 09:31:01 +00:00
|
|
|
with:
|
|
|
|
category: "/language:java"
|