Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update codeql.yml with extended query pack #3694

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 21 additions & 29 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@ name: "Code Scanning - Action"

on:
push:
branches-ignore:
- 'dependabot/**'
branches: main
paths-ignore:
- '**/*.md'
- '**/*.json'
- '**/*.http'

pull_request:
paths-ignore:
- '**/*.md'
- '**/*.json'
- '**/*.http'

schedule:
- cron: '0 0 * * 0'

Expand All @@ -13,6 +22,8 @@ jobs:

strategy:
fail-fast: false
matrix:
language: ['csharp', 'javascript']

runs-on: [self-hosted, 1ES.Pool=GithubRunPool]

Expand All @@ -23,43 +34,24 @@ jobs:
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@v3
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
languages: ${{ matrix.language }}
config: |
queries:
- uses: security-and-quality
query-filters:
- exclude:
id:
- cs/web/missing-function-level-access-control

- name: dotnet restore
run: dotnet restore

- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ 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@v3