History separation #14847
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code Scanning - Action" | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
CodeQL-Build: | |
strategy: | |
fail-fast: false | |
runs-on: [self-hosted, 1ES.Pool=GithubRunPool] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Fetch all history for all tags and branches | |
run: | | |
git fetch --prune --unshallow | |
# Set the custom working directory (e.g., /path/to/your/storage) using the environment file | |
#- name: Make working directory | |
# run: | | |
# mkdir -p ${{ vars.CODEQLDBLOCATION }} | |
# shell: bash | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: csharp, javascript | |
# db-location: ${{ vars.CODEQLDBLOCATION }} | |
# If you wish to specify custom queries, you can do so here or in a config file. | |
# By default, queries listed here will override any specified in a config file. | |
# Prefix the list here with "+" to use these queries and those in the config file. | |
# queries: ./path/to/local/query, your-org/your-repo/queries@main | |
# Override language selection by uncommenting this and choosing your languages | |
# with: | |
# languages: go, javascript, csharp, python, cpp, java | |
- name: dotnet restore | |
run: dotnet restore | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
# ℹ️ 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 | |
uses: github/codeql-action/analyze@v2 |