* run codeql without building the solution * restore dotnet * Revert "restore dotnet" This reverts commit 3e22bc1a760a350366bed0a335ced6116e7c2c28. * Revert "run codeql without building the solution" This reverts commit 9ceaea778124a73e0d7ff0c29ab192cf4700ae60. * use global.json for codeql * do not build solution
72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
name: "Code scanning - action"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*/dev"
|
|
- "*/contrib"
|
|
- "contrib"
|
|
- "release/*"
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches:
|
|
- "*/dev"
|
|
- "*/contrib"
|
|
- "contrib"
|
|
- "release/*"
|
|
schedule:
|
|
- cron: "33 2 * * 1"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
dotnetVersion: 9.x
|
|
dotnetIncludePreviewVersions: "preview"
|
|
solution: umbraco.sln
|
|
buildConfiguration: SkipTests
|
|
DOTNET_NOLOGO: true
|
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
NODE_OPTIONS: --max_old_space_size=16384
|
|
|
|
jobs:
|
|
CodeQL-Build:
|
|
name: Analyze (${{ matrix.language }})
|
|
permissions:
|
|
actions: read # for github/codeql-action/init to get workflow details
|
|
contents: read # for actions/checkout to fetch code
|
|
security-events: write # for github/codeql-action/analyze to upload SARIF results
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: csharp
|
|
build-mode: none
|
|
- language: javascript-typescript
|
|
build-mode: none
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# We use the setup-dotnet action to set up .NET Core, otherwise the CodeQL CLI will not work with preview versions.
|
|
- name: Setup .NET from global.json
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: ${{ matrix.build-mode }}
|
|
config-file: ./.github/config/codeql-config.yml
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|