Skip to content

Commit

Permalink
ci: add synk for security scannling
Browse files Browse the repository at this point in the history
adding sync github action to
run when a PR is merged to the branch,
This will help us to track the security
scanning results and fix if anything is
required and also it serves as a placeholder
for security scanning result for a while.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Nov 15, 2023
1 parent 593d9c3 commit 40e9cc3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/snyk.yaml
@@ -0,0 +1,26 @@
name: Security scanning
on:
push:
tags:
- v*
branches:
- devel
- release-*

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 40e9cc3

Please sign in to comment.