-
Notifications
You must be signed in to change notification settings - Fork 25
53 lines (43 loc) · 1.38 KB
/
codeql.yml
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
43
44
45
46
47
48
49
50
51
52
53
name: "CodeQL"
on:
push:
branches: [ "master", "*-rc" ]
pull_request:
branches: [ "master", "*-rc" ]
schedule:
- cron: "0 0 * * *"
# Declare default permissions as read only.
permissions: read-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: [ python, java ]
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 #v4.2.1
- name: Setup Java JDK
if: ${{ matrix.language == 'java' }}
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 #v4.4.0
with:
java-version: '17'
distribution: 'temurin'
- name: Before Index (java)
if: ${{ matrix.language == 'java' }}
run: ./configure.sh
- name: Initialize CodeQL
uses: github/codeql-action/init@083cd45dc7d463f048a5d0975943f0e19e9c9378 #v2.26.13
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@083cd45dc7d463f048a5d0975943f0e19e9c9378 #v2.26.13
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@083cd45dc7d463f048a5d0975943f0e19e9c9378 #v2.26.13
with:
category: "/language:${{ matrix.language }}"