1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00
focalboard/.github/workflows/codeql-analysis.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2021-06-02 18:34:55 +02:00
name: "CodeQL"
on:
push:
branches: [ main, release-** ]
2021-06-02 18:34:55 +02:00
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, release-** ]
2021-06-02 18:34:55 +02:00
schedule:
- cron: '30 4 * * 0'
2022-10-18 13:22:00 +02:00
permissions:
contents: read
2021-06-02 18:34:55 +02:00
jobs:
analyze:
2022-10-18 13:22:00 +02:00
permissions:
security-events: write # for github/codeql-action/autobuild to send a status report
2021-06-02 18:34:55 +02:00
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'go', 'javascript' ]
steps:
- name: Checkout repository
2022-10-18 13:22:00 +02:00
uses: actions/checkout@v3
2021-06-02 18:34:55 +02:00
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
2021-06-02 18:34:55 +02:00
with:
languages: ${{ matrix.language }}
2022-10-18 13:22:00 +02:00
debug: false
config-file: ./.github/codeql/codeql-config.yml
# Autobuild attempts to build any compiled languages
2021-06-02 18:34:55 +02:00
- name: Autobuild
2022-10-18 13:22:00 +02:00
uses: github/codeql-action/autobuild@v2
2021-06-02 18:34:55 +02:00
2022-10-18 13:22:00 +02:00
# Perform Analysis
2021-06-02 18:34:55 +02:00
- name: Perform CodeQL Analysis
2022-10-18 13:22:00 +02:00
uses: github/codeql-action/analyze@v2