Skip to content

Instantly share code, notes, and snippets.

@felickz
Last active May 24, 2024 11:20
Show Gist options
  • Save felickz/63fb864f68f5cb3176c01ee78c04a5ce to your computer and use it in GitHub Desktop.
Save felickz/63fb864f68f5cb3176c01ee78c04a5ce to your computer and use it in GitHub Desktop.
CodeQL Nightlies
- pwsh: |
$scriptUrl = "https://raw.githubusercontent.com/microsoft/GHAzDO-Resources/codeql-windows-nightlies/src/agent-setup/codeql-install-windows.ps1"
$scriptPath = "codeql-install-windows.ps1"
Invoke-WebRequest -Uri $scriptUrl -OutFile $scriptPath
& ./$scriptPath -UseNightlies $true
displayName: 'install nightlies of codeql'
- task: AdvancedSecurity-Codeql-Init@1
inputs:
languages: 'csharp'
querysuite: 'code-scanning'
env:
#Controls whether to check the responsiveness of NuGet feeds.
CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK: 'true'
...more yaml steps here...
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
#C# Buildless fix - URL of CodeQL bundle pre-release from: https://github.com/dsp-testing/codeql-cli-nightlies/releases
tools: https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20240425/codeql-bundle-linux64.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment