Skip to content

Bump the all-actions group with 3 updates #623

Bump the all-actions group with 3 updates

Bump the all-actions group with 3 updates #623

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Frans van Dorsselaer
#
# SPDX-License-Identifier: MIT
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '14 16 * * 4'
permissions: {}
jobs:
analyze:
name: Analyze (CodeQL)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4.37.8
with:
languages: csharp
- name: Setup .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
cache: true
cache-dependency-path: |
global.json
'**/Directory.Packages.props'
.config/dotnet-tools.json
- name: Install dependencies
run: |
dotnet tool restore
dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4.37.8