This commit is contained in:
+6
-12
@@ -10,12 +10,12 @@ concurrency:
|
|||||||
group: ci-${{ github.ref }}
|
group: ci-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
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:
|
jobs:
|
||||||
build:
|
deps:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
DALAMUD_HOME: /tmp/dalamud
|
|
||||||
PROJECT: HouseStealerPlugin/HouseStealerPlugin.csproj
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -23,17 +23,11 @@ jobs:
|
|||||||
- uses: actions/setup-dotnet@v4
|
- uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 10.0.x
|
dotnet-version: 10.0.x
|
||||||
- name: Download Dalamud
|
|
||||||
run: |
|
|
||||||
wget -q https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -O "$DALAMUD_HOME.zip"
|
|
||||||
unzip -q "$DALAMUD_HOME.zip" -d "$DALAMUD_HOME"
|
|
||||||
- name: Restore
|
- name: Restore
|
||||||
run: dotnet restore "$PROJECT"
|
run: dotnet restore
|
||||||
- name: Build
|
|
||||||
run: dotnet build --configuration Release "$PROJECT" --no-restore
|
|
||||||
- name: Fail on vulnerable packages
|
- name: Fail on vulnerable packages
|
||||||
run: |
|
run: |
|
||||||
out=$(dotnet list "$PROJECT" package --vulnerable --include-transitive 2>&1)
|
out=$(dotnet list package --vulnerable --include-transitive 2>&1)
|
||||||
echo "$out"
|
echo "$out"
|
||||||
if echo "$out" | grep -qi 'has the following vulnerable'; then
|
if echo "$out" | grep -qi 'has the following vulnerable'; then
|
||||||
echo "::error::Vulnerable packages detected"; exit 1
|
echo "::error::Vulnerable packages detected"; exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user