Skip to content

Unify workflow triggers (#70) #58

Unify workflow triggers (#70)

Unify workflow triggers (#70) #58

Workflow file for this run

name: 'CodeQL: Semantic code analysis'
on:
pull_request:
paths:
- 'src/**'
- '.github/workflows/codeql.yml'
types: [opened, synchronize, reopened]
push:
branches:
- 'master'
paths:
- 'src/**'
- '.github/workflows/codeql.yml'
schedule:
- cron: '20 23 * * 0'
workflow_dispatch:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
Configuration: Release
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: build
run: dotnet build ./src/Objectivity.AutoFixture.XUnit2.AutoMock.sln
env:
CI: true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{matrix.language}}'