Skip to content

Merge branch 'main' of https://github.com/JsonViewer-Component/Blazor #43

Merge branch 'main' of https://github.com/JsonViewer-Component/Blazor

Merge branch 'main' of https://github.com/JsonViewer-Component/Blazor #43

Workflow file for this run

name: πŸ” CodeQL Security Analysis
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * 1' # Every Monday at midnight
workflow_dispatch:
jobs:
analyze:
name: πŸ” Analyze C#
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
packages: read
steps:
- name: πŸ“₯ Checkout repository
uses: actions/checkout@v4
- name: πŸ”§ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- name: βš™οΈ Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp
config-file: ./.github/codeql/codeql-config.yml
- name: πŸ—οΈ Build Projects
run: |
echo "πŸ“¦ Restoring dependencies..."
dotnet restore JsonViewer.Blazor.sln
echo "πŸ—οΈ Building Component..."
dotnet build src/Component/Component.csproj -c Release --no-restore
echo "πŸ—οΈ Building Demo..."
dotnet build src/Blazor.Demo/Blazor.Demo.csproj -c Release --no-restore
echo "βœ… Build completed"
- name: πŸ” Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:csharp"