Merge pull request #22713 from mattermost/codeql_monorepo

[SEC-3469] Update codeql config for monorepo
Этот коммит содержится в:
Eva Sarafianou
2023-03-29 14:45:24 +02:00
коммит произвёл GitHub
родитель 5da458a16f 6bdadc246c
Коммит 3f13d8fd41

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

@@ -10,7 +10,7 @@ on:
branches: [ master ]
schedule:
- cron: '30 5,17 * * *'
permissions:
contents: read
@@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
language: [ 'go', 'javascript' ]
steps:
- name: Checkout repository
@@ -36,14 +36,26 @@ jobs:
with:
languages: ${{ matrix.language }}
debug: false
config-file: ./.github/codeql/codeql-config.yml
- name: Build
config-file: ./.github/codeql/codeql-config.yml
- name: Build JavaScript
uses: github/codeql-action/autobuild@v2
if: ${{ matrix.language == 'javascript' }}
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: '1.20'
if: ${{ matrix.language == 'go' }}
- name: Build Golang
run: |
cd server
make setup-go-work
make build-linux-amd64
if: ${{ matrix.language == 'go' }}
# Perform Analysis
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v2