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'
|
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'
|
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
|
2022-11-20 06:17:50 +03:00
|
|
|
|
uses: actions/checkout@v3
|
2021-02-18 09:57:19 +03:00
|
|
|
|
with:
|
|
|
|
|
fetch-depth: 2
|
|
|
|
|
|
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
|
- name: Initialize CodeQL
|
2022-11-20 06:17:50 +03:00
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
|
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
|
2022-11-20 06:17:50 +03:00
|
|
|
|
uses: github/codeql-action/autobuild@v2
|
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
|
2022-11-20 06:17:50 +03:00
|
|
|
|
uses: github/codeql-action/analyze@v2
|