forked from agrahn/Android-Password-Store
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.02 KB
/
Copy pathcodeql_analysis.yml
File metadata and controls
42 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "CodeQL"
on:
workflow_dispatch:
# CodeQL does not yet support Kotlin 2.3.20 — re-enable when supported
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup build environment
uses: ./.github/reusable-workflows/setup-gradle
with:
java-version: 21
- name: Initialize CodeQL
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
languages: java
tools: latest
queries: +security-extended
- name: Build project
shell: bash
run: ./gradlew assembleRelease
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
category: "/language:java"