(ci) add nancy job
@@ -22,6 +22,20 @@ on:
workflow_dispatch:
jobs:
+ nancy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Set up Go 1.x in order to write go.list file
+ uses: actions/setup-go@v2
+
+ - name: WriteGoList
+ run: go list -json -m all > go.list
+
+ - name: Nancy
+ uses: sonatype-nexus-community/nancy-github-action@main
analyze:
name: Analyze
runs-on: ubuntu-latest
