mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-22 17:50:03 +08:00
7bd90d1ed7
## Description Updates unpinned NuGet dependencies to current compatible stable versions, pins the repository and CI to .NET SDK 10.0.401 (.NET 10.0.12), and re-enables the macOS ARM64 NativeAOT lane. The existing intentional pins remain unchanged, including Moq, compatibility/security remediation pins, Roslyn compatibility versions, coordinated OpenUSD packages, and per-TFM MQTTnet/ASP.NET Core bands. The .NET 10.0.12 `Microsoft.DotNet.ILCompiler` package provenance was verified against the runtime relocation-anchor fix required for the Apple linker failure. ## Related Issues - Fixes #4443 ## Validation - `dotnet restore UA.slnx`: passed - Targeted .NET 10 build: passed - Core schema tests: 160 passed - Main NativeAOT tests: 178 passed - Historian NativeAOT tests: 2 passed - MCP NativeAOT tests: 3 passed - `git diff --check`: passed ## Checklist - [x] I have added tests that prove my fix is effective or that my feature works and increased code coverage. - [ ] I have added all necessary documentation. - [x] I have verified that my changes do not introduce (new) build or analyzer warnings. - [ ] I ran all tests locally using the UA.slnx solution against at least .NET Framework and .NET 10, and all passed. - [ ] I fixed all failing and flaky tests in the CI pipelines and all CodeQL warnings. - [ ] I have addressed all PR feedback received. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
77 lines
3.0 KiB
YAML
77 lines
3.0 KiB
YAML
# A CodeQL query for the UA .NET Standard project
|
|
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, main, master378, release/*, develop/* ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ master, main, master378 ]
|
|
paths:
|
|
- '**.cs'
|
|
schedule:
|
|
- cron: '30 6 * * 6'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
packages: read
|
|
security-events: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: windows-2025
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'csharp' ]
|
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
|
# Learn more:
|
|
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
# By default, queries listed here will override any specified in a config file.
|
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
|
|
- name: Set up .NET
|
|
uses: actions/setup-dotnet@v6
|
|
with:
|
|
dotnet-version: '10.0.401'
|
|
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#c-compiler-flags-injected-by-codeql-for-manual-builds
|
|
#
|
|
# CustomTestTarget pins the build to a single target framework (see
|
|
# targets.props). A default build multi-targets up to six frameworks, so
|
|
# CodeQL would extract every source file - and every source generated file,
|
|
# which EmitCompilerGeneratedFiles materializes on disk and which alone is
|
|
# tens of megabytes per project - once per framework. That duplication grew
|
|
# the database until "codeql database interpret-results" ran out of memory
|
|
# on the hosted runner. Analyzing one framework covers the same sources
|
|
# once and keeps the database within the runner's memory budget.
|
|
- name: Build Solution
|
|
run: |
|
|
dotnet build "UA.slnx" -c Release -p:CustomTestTarget=net10.0 -p:UseSharedCompilation=false -p:EmitCompilerGeneratedFiles=true
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
# Interpreting results in parallel keeps a result set and its source
|
|
# snippets in memory per thread. Two threads bound the peak memory of
|
|
# the step that previously failed with an out of memory error.
|
|
threads: 2
|