-
-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (37 loc) · 1.01 KB
/
codeql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "Analysis"
on:
workflow_dispatch:
# push:
# branches: [ "main", "release/*" ]
# pull_request:
# # The branches below must be a subset of the branches above
# branches: [ "main" ]
# schedule:
# - cron: '43 7 * * 0'
workflow_call:
inputs:
project-name:
description: 'The name of the project'
type: string
configuration:
description: 'The build configuration'
default: Release
type: string
dotnet-target:
description: 'The target .NET version'
default: net7.0
type: string
jobs:
build:
name: Build
uses: ./.github/workflows/_build.yml
with:
project-name: ${{ inputs.project-name || 'MailKitSimplified' }}
analyze:
name: Analyze
needs: build
uses: ./.github/workflows/_codeql.yml
with:
dotnet-target: ${{ inputs.dotnet-target || 'net7.0' }} # netstandard2.0
configuration: ${{ inputs.configuration || 'Release' }}
artifact-name: ${{ needs.build.outputs.artifact }}