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
|
|
|
|
2022-09-07 21:27:16 -07:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2022-09-19 01:17:46 -07:00
|
|
|
security-events: write
|
2022-09-07 21:27:16 -07:00
|
|
|
|
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
|
2023-10-31 04:48:17 -07:00
|
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
2023-09-13 06:27:38 -07:00
|
|
|
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
2022-04-12 02:00:54 -07:00
|
|
|
with:
|
2023-08-14 14:14:09 -07:00
|
|
|
go-version: '>=1.21 <1.22'
|
2020-12-02 15:48:39 -08:00
|
|
|
|
2021-06-12 03:47:47 -07:00
|
|
|
- name: Initialize CodeQL
|
2023-09-13 06:27:38 -07:00
|
|
|
uses: github/codeql-action/init@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
|
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
|
2023-09-13 06:27:38 -07:00
|
|
|
uses: github/codeql-action/autobuild@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
|
2020-12-02 15:48:39 -08:00
|
|
|
|
2021-06-12 03:47:47 -07:00
|
|
|
- name: Perform CodeQL Analysis
|
2023-09-13 06:27:38 -07:00
|
|
|
uses: github/codeql-action/analyze@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
|