Skip to content

Commit 73110f2

Browse files
authored
Merge pull request #9 from serpapi/feature/setup-snyk
Monitor security vulnerabilities in dependencies
2 parents fe9db3c + c40082a commit 73110f2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# A sample workflow which checks out your Infrastructure as Code Configuration files,
2+
# such as Kubernetes, Helm & Terraform and scans them for any security issues.
3+
# The results are then uploaded to GitHub Security Code Scanning
4+
#
5+
# For more examples, including how to limit scans to only high-severity issues
6+
# and fail PR checks, see https://github.com/snyk/actions/
7+
8+
name: Snyk Ruby
9+
10+
on:
11+
push:
12+
branches: [ master ]
13+
pull_request:
14+
# The branches below must be a subset of the branches above
15+
branches: [ master ]
16+
schedule:
17+
- cron: '0 0 * * 0'
18+
19+
jobs:
20+
snyk:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Run Snyk to check configuration files for security issues
25+
# Snyk can be used to break the build when it detects security issues.
26+
# In this case we want to upload the issues to GitHub Code Scanning
27+
continue-on-error: true
28+
uses: snyk/actions/ruby@master
29+
env:
30+
# In order to use the Snyk Action you will need to have a Snyk API token.
31+
# More details in https://github.com/snyk/actions#getting-your-snyk-token
32+
# or you can signup for free at https://snyk.io/login
33+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 commit comments

Comments
 (0)