2022-04-12 02:00:54 -07:00
|
|
|
---
|
2020-12-02 15:48:39 -08:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
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
|
2022-04-12 02:00:54 -07:00
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: '>=1.17 <1.18'
|
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
|