snyk.yaml 526 B

123456789101112131415161718192021222324252627
  1. name: Security scanning
  2. on:
  3. push:
  4. tags:
  5. - v*
  6. branches:
  7. - master
  8. - release-*
  9. permissions:
  10. contents: read
  11. jobs:
  12. security:
  13. if: github.repository == 'rook/rook'
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: checkout
  17. uses: actions/checkout@v4
  18. with:
  19. fetch-depth: 0
  20. - name: run Snyk to check for code vulnerabilities
  21. uses: snyk/actions/golang@master
  22. env:
  23. SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
  24. GOFLAGS: "-buildvcs=false"