Run nancy validation for all dependencies (#1243)

* Run nancy validation for all dependencies

* Update pr-extra.yml

Use `-json` flag
This commit is contained in:
Sergey Vilgelm 2020-07-16 17:14:12 -05:00 committed by GitHub
parent 4f26f11ea3
commit 862ed88cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
.github/workflows/pr-extra.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Extra
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
vulns:
name: Vulnerability scanner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
# We cannot use nancy-github-action because it is outdated, so it's better to use the latest
# docker image for the validation
- name: nancy
run: go list -json -m all | docker run -i sonatypecommunity/nancy:latest