|
|
@ -8,45 +8,39 @@ on:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
CodeQL-Build:
|
|
|
|
CodeQL-Build:
|
|
|
|
|
|
|
|
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
|
|
|
|
# CodeQL runs on ubuntu-latest and windows-latest
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
|
|
# required for all workflows
|
|
|
|
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
|
|
|
|
# We must fetch at least the immediate parents so that if this is
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
# a pull request then we can checkout the head.
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
fetch-depth: 2
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
|
|
|
|
# Override language selection by uncommenting this and choosing your languages
|
|
|
|
# If this run was triggered by a pull request event, then checkout
|
|
|
|
# with:
|
|
|
|
# the head of the pull request instead of the merge commit.
|
|
|
|
# languages: go, javascript, csharp, python, cpp, java, ruby
|
|
|
|
- run: git checkout HEAD^2
|
|
|
|
|
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
# 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).
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
- name: Autobuild
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/autobuild@v2
|
|
|
|
uses: github/codeql-action/init@v1
|
|
|
|
|
|
|
|
# Override language selection by uncommenting this and choosing your languages
|
|
|
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
|
|
# with:
|
|
|
|
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
|
|
# languages: go, javascript, csharp, python, cpp, java
|
|
|
|
|
|
|
|
|
|
|
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following
|
|
|
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
|
|
# three lines and modify them (or add more) to build your code if your
|
|
|
|
# If this step fails, then you should remove it and run the build manually (see below)
|
|
|
|
# project uses a compiled language
|
|
|
|
- name: Autobuild
|
|
|
|
|
|
|
|
uses: github/codeql-action/autobuild@v1
|
|
|
|
#- run: |
|
|
|
|
|
|
|
|
# make bootstrap
|
|
|
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
|
|
# make release
|
|
|
|
# 📚 https://git.io/JvXDl
|
|
|
|
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
|
|
uses: github/codeql-action/analyze@v2
|
|
|
|
# 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
|
|
|
|
|
|
|
|
uses: github/codeql-action/analyze@v1
|
|
|
|
|
|
|
|