feat(ci): configure CodeQL analysis

This commit is contained in:
Harsh Shandilya 2022-12-08 01:40:36 +05:30
parent 3829abeb8f
commit b19617f8c7
No known key found for this signature in database

30
.github/workflows/codeql_analysis.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: "CodeQL"
on:
push:
branches:
- main
schedule:
- cron: "20 3 * * 0"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:java"