1
0
mirror of https://github.com/mc1arke/sonarqube-community-branch-plugin.git synced 2024-11-24 08:42:28 +02:00

Add CodeQL security analysis

Adds a recurring scheduled check of code security on the master branch, as well as a scan of every pull request to master.
This commit is contained in:
Michael Clarke 2021-09-03 23:15:46 +01:00
parent 3dfef065c9
commit 3247a9edbf

38
.github/workflows/codeql-analysis.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: "CodeQL"
on:
push:
branches: [ master, release/* ]
pull_request:
branches: [ master ]
schedule:
- cron: '32 23 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1