2022-11-20 06:17:50 +03:00
|
|
|
|
name: "Code scanning"
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2022-05-06 17:32:56 +03:00
|
|
|
|
branches:
|
|
|
|
|
- master
|
|
|
|
|
- dev
|
2023-05-21 11:04:11 +03:00
|
|
|
|
paths-ignore:
|
|
|
|
|
- '**.md'
|
2023-07-01 09:37:05 +03:00
|
|
|
|
- '**.yml'
|
|
|
|
|
- '**.yaml'
|
|
|
|
|
- '!.github/workflows/codeql.yml'
|
2021-02-18 09:57:19 +03:00
|
|
|
|
pull_request:
|
2022-05-06 17:32:56 +03:00
|
|
|
|
branches:
|
|
|
|
|
- master
|
2022-11-20 06:17:50 +03:00
|
|
|
|
- dev
|
2022-12-20 16:36:02 +03:00
|
|
|
|
paths-ignore:
|
|
|
|
|
- '**.md'
|
2023-07-01 09:37:05 +03:00
|
|
|
|
- '**.yml'
|
|
|
|
|
- '**.yaml'
|
|
|
|
|
- '!.github/workflows/codeql.yml'
|
2021-02-18 09:57:19 +03:00
|
|
|
|
schedule:
|
2022-11-20 06:17:50 +03:00
|
|
|
|
# ┌───────────── minute (0 - 59)
|
|
|
|
|
# │ ┌───────────── hour (0 - 23)
|
|
|
|
|
# │ │ ┌───────────── day of the month (1 - 31)
|
|
|
|
|
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
|
|
|
|
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
|
|
|
|
# │ │ │ │ │
|
|
|
|
|
# │ │ │ │ │
|
|
|
|
|
# │ │ │ │ │
|
|
|
|
|
# * * * * *
|
|
|
|
|
- cron: '30 4 * * 6'
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
|
|
|
|
jobs:
|
2022-11-20 06:17:50 +03:00
|
|
|
|
CodeQL-Build:
|
|
|
|
|
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
|
2022-11-26 21:25:39 +03:00
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-20 06:17:50 +03:00
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
# required for all workflows
|
|
|
|
|
security-events: write
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
2024-02-05 13:59:34 +03:00
|
|
|
|
uses: actions/checkout@v4
|
2021-02-18 09:57:19 +03:00
|
|
|
|
with:
|
|
|
|
|
fetch-depth: 2
|
|
|
|
|
|
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
|
- name: Initialize CodeQL
|
2024-02-05 13:59:34 +03:00
|
|
|
|
uses: github/codeql-action/init@v3
|
2022-11-20 06:17:50 +03:00
|
|
|
|
with:
|
|
|
|
|
languages: go
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
2022-11-20 06:17:50 +03:00
|
|
|
|
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
|
|
|
# If this step fails, then you should remove it and run the build manually (see below).
|
2021-02-18 09:57:19 +03:00
|
|
|
|
- name: Autobuild
|
2024-02-05 13:59:34 +03:00
|
|
|
|
uses: github/codeql-action/autobuild@v3
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
|
|
|
|
# ℹ️ Command-line programs to run using the OS shell.
|
2022-11-20 06:17:50 +03:00
|
|
|
|
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
2022-11-20 06:17:50 +03:00
|
|
|
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following
|
|
|
|
|
# three lines and modify them (or add more) to build your code if your
|
|
|
|
|
# project uses a compiled language
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
|
|
|
|
#- run: |
|
2022-11-20 06:17:50 +03:00
|
|
|
|
# make bootstrap
|
|
|
|
|
# make release
|
2021-02-18 09:57:19 +03:00
|
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2024-02-05 13:59:34 +03:00
|
|
|
|
uses: github/codeql-action/analyze@v3
|