35 lines
951 B
YAML
35 lines
951 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
# Gate for Renovate auto-merge. A full `dotnet build` needs the Dalamud
|
|
# assemblies (staging channel) and is too flaky for a merge gate, so this
|
|
# verifies the NuGet graph resolves and introduces no known-vulnerable package.
|
|
jobs:
|
|
deps:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
- name: Restore
|
|
run: dotnet restore
|
|
- name: Fail on vulnerable packages
|
|
run: |
|
|
out=$(dotnet list package --vulnerable --include-transitive 2>&1)
|
|
echo "$out"
|
|
if echo "$out" | grep -qi 'has the following vulnerable'; then
|
|
echo "::error::Vulnerable packages detected"; exit 1
|
|
fi
|