mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
25 lines
879 B
YAML
25 lines
879 B
YAML
name: Build C# CodeQL pack
|
|
description: Builds the C# CodeQL pack
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: ./.github/actions/fetch-codeql
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 9.0.300
|
|
- name: Build Extractor
|
|
shell: bash
|
|
run: scripts/create-extractor-pack.sh
|
|
working-directory: csharp
|
|
- name: Patch bundle to include ASP extractor
|
|
shell: bash
|
|
run: |
|
|
CODEQL_PATH=$(gh codeql version --format=json | jq -r .unpackedLocation)
|
|
# The legacy ASP extractor is not in this repo, so take the one from the nightly build
|
|
mv "$CODEQL_PATH/csharp/tools/extractor-asp.jar" "$GITHUB_WORKSPACE/csharp/extractor-pack/tools"
|
|
# Safe guard against using the bundled extractor
|
|
rm -rf "$CODEQL_PATH/csharp"
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|