Skip to content

Bump actions/upload-artifact from 3 to 4 (#392) #784

Bump actions/upload-artifact from 3 to 4 (#392)

Bump actions/upload-artifact from 3 to 4 (#392) #784

# https://github.com/github/codeql
# https://github.com/github/codeql-action
name: CodeQL analysis
on:
push:
branches: [master, develop, v8]
pull_request:
branches: [master, develop, v8]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
show-progress: false
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
queries: security-and-quality
languages: csharp
config-file: ./.github/codeql-config.yml
- name: Install dependencies
working-directory: src
run: dotnet restore
- name: Build only parser project
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/troubleshooting-the-codeql-workflow#reduce-the-amount-of-code-being-analyzed-in-a-single-workflow
working-directory: src/GraphQLParser
run: dotnet build --no-restore
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2