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:
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- master
|
|
|
|
|
- '*/ci'
|
2022-12-28 22:57:36 +08:00
|
|
|
|
paths-ignore:
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- '**/*.md'
|
|
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
|
- '.circleci/**'
|
|
|
|
|
- '.cirrus.yml'
|
2023-12-21 11:59:20 +08:00
|
|
|
|
- 'appveyor.*'
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- 'docs/**'
|
|
|
|
|
- 'packages/**'
|
|
|
|
|
- 'plan9/**'
|
|
|
|
|
- 'projects/**'
|
|
|
|
|
- 'tests/data/**'
|
|
|
|
|
- 'winbuild/**'
|
2020-06-26 07:06:05 +08:00
|
|
|
|
pull_request:
|
2020-07-13 04:07:38 +08:00
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- master
|
2022-12-28 22:57:36 +08:00
|
|
|
|
paths-ignore:
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- '**/*.md'
|
|
|
|
|
- '.azure-pipelines.yml'
|
|
|
|
|
- '.circleci/**'
|
|
|
|
|
- '.cirrus.yml'
|
2023-12-21 11:59:20 +08:00
|
|
|
|
- 'appveyor.*'
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- 'docs/**'
|
|
|
|
|
- 'packages/**'
|
|
|
|
|
- 'plan9/**'
|
|
|
|
|
- 'projects/**'
|
|
|
|
|
- 'tests/data/**'
|
|
|
|
|
- 'winbuild/**'
|
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:
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- name: Checkout repository
|
2024-05-20 22:25:03 +08:00
|
|
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
|
2020-06-26 14:49:23 +08:00
|
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
|
- name: Initialize CodeQL
|
2024-05-15 17:39:30 +08:00
|
|
|
|
uses: github/codeql-action/init@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3
|
2023-12-06 18:05:20 +08:00
|
|
|
|
with:
|
|
|
|
|
languages: cpp
|
|
|
|
|
queries: security-extended
|
2020-06-26 07:06:05 +08:00
|
|
|
|
|
2023-12-06 18:05:20 +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
|
2024-05-15 17:39:30 +08:00
|
|
|
|
uses: github/codeql-action/autobuild@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3
|
2020-06-26 07:06:05 +08:00
|
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
|
|
|
# 📚 https://git.io/JvXDl
|
2020-06-26 07:06:05 +08:00
|
|
|
|
|
2023-12-06 18:05:20 +08: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
|
2020-06-26 07:06:05 +08:00
|
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
|
# - run: |
|
|
|
|
|
# make bootstrap
|
|
|
|
|
# make release
|
2020-06-26 07:06:05 +08:00
|
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
|
- name: Perform CodeQL Analysis
|
2024-05-15 17:39:30 +08:00
|
|
|
|
uses: github/codeql-action/analyze@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3
|