2022-03-06 21:48:25 +08:00
|
|
|
name: CodeQL
|
2021-04-13 21:25:55 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-03-06 21:48:25 +08:00
|
|
|
branches: [master, dev]
|
2021-04-13 21:25:55 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-03-06 21:48:25 +08:00
|
|
|
language: ['go']
|
2021-04-13 21:25:55 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-06 21:48:25 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-04-13 21:25:55 +08:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2022-07-21 15:15:14 +08:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-04-13 21:25:55 +08:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
|
|
|
- name: Autobuild
|
2022-07-21 15:15:14 +08:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2021-04-13 21:25:55 +08:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-07-21 15:15:14 +08:00
|
|
|
uses: github/codeql-action/analyze@v2
|