Skip to content

Commit f03618f

Browse files
authored
Add codeql.yml
1 parent 3d9346e commit f03618f

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: '0 12 1,15 * *'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 10
18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language: [ 'java' ]
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v3
31+
32+
# Initializes the CodeQL tools for scanning.
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v2
35+
with:
36+
languages: ${{ matrix.language }}
37+
38+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
39+
# If this step fails, then you should remove it and run the build manually (see below)
40+
- name: Autobuild
41+
uses: github/codeql-action/autobuild@v2
42+
43+
# ℹ️ Command-line programs to run using the OS shell.
44+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
45+
46+
# If the Autobuild fails above, remove it and uncomment the following three lines.
47+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
48+
49+
# - run: |
50+
# echo "Run, Build Application using script"
51+
# ./location_of_script_within_repo/buildscript.sh
52+
53+
- name: Perform CodeQL Analysis
54+
uses: github/codeql-action/analyze@v2
55+
with:
56+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)