2023-01-02 20:51:48 +08:00
|
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-05-17 17:16:50 +08:00
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
|
2022-05-18 06:03:16 +08:00
|
|
|
|
name: CodeQL
|
2020-06-26 07:06:05 +08:00
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2020-07-13 04:07:38 +08:00
|
|
|
|
branches:
|
2022-05-18 06:03:16 +08:00
|
|
|
|
- master
|
|
|
|
|
- '*/ci'
|
2022-12-28 22:57:36 +08:00
|
|
|
|
paths-ignore:
|
|
|
|
|
- '**/*.md'
|
2020-06-26 07:06:05 +08:00
|
|
|
|
pull_request:
|
2020-07-13 04:07:38 +08:00
|
|
|
|
branches:
|
2022-05-18 06:03:16 +08:00
|
|
|
|
- master
|
2022-12-28 22:57:36 +08:00
|
|
|
|
paths-ignore:
|
|
|
|
|
- '**/*.md'
|
2020-06-26 07:06:05 +08:00
|
|
|
|
schedule:
|
|
|
|
|
- cron: '0 0 * * 4'
|
|
|
|
|
|
2022-09-18 05:45:32 +08:00
|
|
|
|
concurrency:
|
|
|
|
|
group: ${{ github.workflow }}
|
|
|
|
|
|
2022-11-16 22:55:33 +08:00
|
|
|
|
permissions: {}
|
2021-08-16 12:56:48 +08:00
|
|
|
|
|
2020-06-26 07:06:05 +08:00
|
|
|
|
jobs:
|
2020-07-13 04:07:38 +08:00
|
|
|
|
codeql:
|
2020-06-26 07:06:05 +08:00
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-16 22:55:33 +08:00
|
|
|
|
permissions:
|
|
|
|
|
security-events: write
|
2020-06-26 07:06:05 +08:00
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
2022-05-15 05:37:59 +08:00
|
|
|
|
uses: actions/checkout@v3
|
2020-06-26 14:49:23 +08:00
|
|
|
|
|
2020-06-26 07:06:05 +08:00
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
|
- name: Initialize CodeQL
|
2022-05-15 05:37:59 +08:00
|
|
|
|
uses: github/codeql-action/init@v2
|
2020-06-26 14:49:23 +08:00
|
|
|
|
with:
|
|
|
|
|
languages: cpp
|
2021-03-31 07:06:03 +08:00
|
|
|
|
queries: security-extended
|
2020-06-26 07:06:05 +08:00
|
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
|
- name: Autobuild
|
2022-05-15 05:37:59 +08:00
|
|
|
|
uses: github/codeql-action/autobuild@v2
|
2020-06-26 07:06:05 +08: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
|
|
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-05-15 05:37:59 +08:00
|
|
|
|
uses: github/codeql-action/analyze@v2
|