Skip to content

Commit 14d365d

Browse files
committed
fix: CI pipeline security scan and release job configuration
1 parent 06cf0d1 commit 14d365d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
name: Create GitHub Release
147147
runs-on: ubuntu-latest
148148
needs: [build, publish-nuget]
149-
if: github.ref == 'refs/heads/main'
149+
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release]')
150150
permissions:
151151
contents: write
152152
packages: read
@@ -268,6 +268,9 @@ jobs:
268268
with:
269269
dotnet-version: ${{ env.DOTNET_VERSION }}
270270

271+
- name: Restore dependencies
272+
run: dotnet restore
273+
271274
- name: Run security scan
272275
run: |
273276
dotnet list package --vulnerable

0 commit comments

Comments
 (0)