Skip to content

Add SDL and Binary Hardening CI PR Gate #20

Add SDL and Binary Hardening CI PR Gate

Add SDL and Binary Hardening CI PR Gate #20

Workflow file for this run

name: Go Dependency Security Check (Nancy)
on:
pull_request:
branches:
- msft-main # Adjust if needed
push:
branches:
- mitchzhu/clippy
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