2023-03-05 15:38:29 +00:00
|
|
|
name: "Code scanning - action"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '30 1 * * 6'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
CodeQL-Build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-24 06:44:16 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-03-05 15:38:29 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
2023-12-10 15:40:13 +00:00
|
|
|
uses: actions/setup-go@v5
|
2023-03-05 15:38:29 +00:00
|
|
|
with:
|
2024-02-17 19:42:33 +00:00
|
|
|
go-version: '1.22'
|
2023-03-05 15:38:29 +00:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
with:
|
|
|
|
languages: go
|
|
|
|
|
|
|
|
- name: Autobuild
|
|
|
|
uses: github/codeql-action/autobuild@v2
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
uses: github/codeql-action/analyze@v2
|