2022-04-12 02:00:54 -07:00
|
|
|
---
|
2020-12-02 15:48:39 -08:00
|
|
|
name: "CodeQL"
|
|
|
|
|
2023-01-25 11:12:26 -08:00
|
|
|
on:
|
2022-09-06 07:58:50 -07:00
|
|
|
workflow_call:
|
2020-12-02 15:48:39 -08:00
|
|
|
schedule:
|
2021-06-12 03:47:47 -07:00
|
|
|
- cron: "26 14 * * 1"
|
2020-12-02 15:48:39 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
2022-04-12 02:00:54 -07:00
|
|
|
permissions:
|
|
|
|
security-events: write
|
2020-12-02 15:48:39 -08:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-06-12 03:47:47 -07:00
|
|
|
language: ["go", "javascript"]
|
2020-12-02 15:48:39 -08:00
|
|
|
|
|
|
|
steps:
|
2021-06-12 03:47:47 -07:00
|
|
|
- name: Checkout repository
|
2022-03-03 06:59:07 -08:00
|
|
|
uses: actions/checkout@v3
|
2023-04-01 16:57:17 -07:00
|
|
|
- uses: actions/setup-go@v4
|
2022-04-12 02:00:54 -07:00
|
|
|
with:
|
2023-03-09 05:41:24 -08:00
|
|
|
go-version: '>=1.20 <1.21'
|
2020-12-02 15:48:39 -08:00
|
|
|
|
2021-06-12 03:47:47 -07:00
|
|
|
- name: Initialize CodeQL
|
2022-04-12 02:00:54 -07:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-06-12 03:47:47 -07:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2020-12-02 15:48:39 -08:00
|
|
|
|
2021-06-12 03:47:47 -07:00
|
|
|
- name: Autobuild
|
2022-04-12 02:00:54 -07:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2020-12-02 15:48:39 -08:00
|
|
|
|
2021-06-12 03:47:47 -07:00
|
|
|
- name: Perform CodeQL Analysis
|
2022-04-12 02:00:54 -07:00
|
|
|
uses: github/codeql-action/analyze@v2
|