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-29 13:59:52 +00:00
|
|
|
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
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-29 13:59:52 +00:00
|
|
|
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
2023-04-20 09:31:01 +00:00
|
|
|
with:
|
|
|
|
category: "/language:java"
|