Skip to content

Commit dba16ed

Browse files
authored
Merge pull request #295 from puppetlabs/snyk_scan
2 parents ebb966f + 55958f4 commit dba16ed

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/snyk.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Snyk Scan
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
security:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: twingate/github-action@v1
12+
with:
13+
service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
14+
- uses: actions/checkout@master
15+
- name: setup ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 2.7
19+
- name: create lock
20+
run: bundle lock
21+
- name: Run Snyk to check for vulnerabilities
22+
uses: snyk/actions/ruby@master
23+
env:
24+
SNYK_TOKEN: ${{ secrets.SNYK_GENERAL_KEY }}
25+
with:
26+
command: monitor
27+

0 commit comments

Comments
 (0)