Skip to content

Commit f4faa93

Browse files
committed
add codeql analysis action
1 parent dc08ffe commit f4faa93

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: '18 22 * * 6'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [ 'java' ]
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v3
30+
31+
- name: create checksum file
32+
uses: hypertrace/github-actions/checksum@main
33+
34+
- name: create checksum file
35+
uses: hypertrace/github-actions/checksum@main
36+
37+
- name: Cache packages
38+
uses: actions/cache@v2
39+
with:
40+
path: ~/.gradle
41+
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
42+
restore-keys: |
43+
gradle-packages-${{ runner.os }}-${{ github.job }}
44+
gradle-packages-${{ runner.os }}
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@v2
49+
with:
50+
languages: ${{ matrix.language }}
51+
52+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
53+
- name: Autobuild
54+
uses: github/codeql-action/autobuild@v2
55+
56+
- name: Perform CodeQL Analysis
57+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)