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-06-04 17:32:57 +00:00
|
|
|
uses: github/codeql-action/init@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8
|
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-06-04 17:32:57 +00:00
|
|
|
uses: github/codeql-action/analyze@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8
|
2023-04-20 09:31:01 +00:00
|
|
|
with:
|
|
|
|
category: "/language:java"
|