forked from rook/rook
We cannot use the secret when PRs are pushed from forks so let's run the security scan only after PRs are merged. Signed-off-by: Sébastien Han <seb@redhat.com>
23 lines
401 B
YAML
23 lines
401 B
YAML
name: Security scanning
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- master
|
|
- release-*
|
|
|
|
jobs:
|
|
security:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: run Snyk to check for code vulnerabilities
|
|
uses: snyk/actions/golang@master
|
|
env:
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|