Create CodeQL pipeline AB#425 (#2)

* test basic cql pipeline

* test single sln

* test autobuild with languages declaration

* test language matrix

* test language matrix

* replace java autobuild

* test java compile

* remove java to test others

* test java build through mvnw

* test java build through mvnw 2

* fix step names and pl triggers
This commit is contained in:
Aleksandar Ivanov 2021-05-27 17:28:42 +03:00 коммит произвёл GitHub
Родитель 0acfe44d67
Коммит 96d19ffedf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 50 добавлений и 0 удалений

50
.github/workflows/codeql-analysis.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,50 @@
name: CodeQL Analysis
on:
push:
paths:
- 'Source/**'
pull_request:
paths:
- 'Source/**'
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
matrix:
language: [ 'csharp', 'java', 'javascript', 'python' ]
steps:
- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
category: ${{ matrix.language }}
queries: security-and-quality
- if: matrix.language == 'csharp'
name: Build C# code
id: build_csharp_code
uses: github/codeql-action/autobuild@v1
- if: matrix.language == 'java'
name: Build Java code
id: build_java_code
run: |
./mvnw package
working-directory: Source/Services/RPSLS.JavaPlayer.Api/
- name: Perform CodeQL Analysis
id: analyze_codeql
uses: github/codeql-action/analyze@v1
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)