forked from kata-containers/kata-containers
-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (30 loc) · 981 Bytes
/
nancy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Go Dependency Security Check (Nancy)
on:
pull_request:
branches:
- msft-main
jobs:
nancy:
name: Run Nancy SDL Check on Go Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable # Use latest stable Go version
- name: Install Nancy via Go
run: |
echo "Installing Nancy..."
go install github.com/sonatype-nexus-community/nancy@latest
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Verify Nancy Installation
run: |
echo "Checking Nancy installation..."
nancy --help || echo "Nancy installed successfully!"
- name: Run Nancy on `src/runtime`
working-directory: src/runtime
run: |
echo "Running Nancy vulnerability scan on Go dependencies..."
go list -m all | nancy sleuth