2020-07-02 18:12:39 +02:00
|
|
|
|
name: "Code scanning - action"
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
pull_request:
|
|
|
|
|
schedule:
|
|
|
|
|
- cron: '0 16 * * 6'
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
CodeQL-Build:
|
|
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
2022-10-24 10:35:32 +02:00
|
|
|
|
uses: actions/checkout@v3
|
2020-07-02 18:12:39 +02:00
|
|
|
|
with:
|
|
|
|
|
# We must fetch at least the immediate parents so that if this is
|
|
|
|
|
# a pull request then we can checkout the head.
|
|
|
|
|
fetch-depth: 2
|
|
|
|
|
|
|
|
|
|
# If this run was triggered by a pull request event, then checkout
|
|
|
|
|
# the head of the pull request instead of the merge commit.
|
|
|
|
|
- run: git checkout HEAD^2
|
|
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
2023-04-20 10:33:37 +02:00
|
|
|
|
|
2020-07-02 18:12:39 +02:00
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
|
- name: Initialize CodeQL
|
2023-12-19 09:07:51 +01:00
|
|
|
|
uses: github/codeql-action/init@v3
|
2020-07-02 18:12:39 +02:00
|
|
|
|
# Override language selection by uncommenting this and choosing your languages
|
|
|
|
|
# with:
|
|
|
|
|
# languages: go, javascript, csharp, python, cpp, java
|
|
|
|
|
|
|
|
|
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
|
|
|
# If this step fails, then you should remove it and run the build manually (see below)
|
2021-04-12 10:44:15 +02:00
|
|
|
|
#- name: Autobuild
|
|
|
|
|
# uses: github/codeql-action/autobuild@v1
|
2020-07-02 18:12:39 +02:00
|
|
|
|
|
|
|
|
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
|
|
|
# 📚 https://git.io/JvXDl
|
|
|
|
|
|
|
|
|
|
# ✏️ 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
|
|
|
|
|
|
|
|
|
|
#- run: |
|
|
|
|
|
# make bootstrap
|
|
|
|
|
# make release
|
|
|
|
|
|
2024-04-12 07:46:29 +02:00
|
|
|
|
# to make sure autobuild success, specifify golang version in go.mod
|
|
|
|
|
# https://github.com/github/codeql/issues/15647#issuecomment-2003768106
|
|
|
|
|
|
2020-07-02 18:12:39 +02:00
|
|
|
|
- name: Perform CodeQL Analysis
|
2023-12-19 09:07:51 +01:00
|
|
|
|
uses: github/codeql-action/analyze@v3
|