Skip to content

Commit

Permalink
ci: add snyk for devel branch
Browse files Browse the repository at this point in the history
adding snyk github action to
run weekly on the devel branch.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Nov 15, 2023
1 parent 5e915f5 commit 5795a52
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/snyk.yaml
@@ -0,0 +1,25 @@
---
name: Security scanning
# yamllint disable-line rule:truthy
on:
schedule:
# Run weekly on Monday
- cron: '0 0 * * 1'

permissions:
contents: read

jobs:
security:
if: github.repository == 'ceph/ceph-csi'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: run Snyk to check for code vulnerabilities
uses: snyk/actions/golang@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit 5795a52

Please sign in to comment.