-
Notifications
You must be signed in to change notification settings - Fork 5
/
sample_workflow.yaml
34 lines (32 loc) · 1.07 KB
/
sample_workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: vanagon check PRs
on:
push:
branches:
- main
jobs:
snyk_vanagon:
runs-on: ubuntu-latest
steps:
- name: Connect to Twingate
uses: twingate/github-action@v1
with:
service-key: ${{ secrets.TWINGATE_KEY }}
- name: checkout the current PR
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Run Vanagon Snyk Scan
uses: puppetlabs/security-snyk-vanagon-action@v3
with:
snykToken: ${{ secrets.SNYK_TOKEN }}
snykOrg: 'puppet-enterprise'
skipProjects: 'agent-runtime-5.5.x,agent-runtime-1.10.x,client-tools-runtime-irving,pdk-runtime'
skipPlatforms: 'cisco-wrlinux-5-x86_64,cisco-wrlinux-7-x86_64,debian-10-armhf,eos-4-i386,fedora-30-x86_64,fedora-31-x86_64,osx-10.14-x86_64'
sshKey: '${{ secrets.SSH_KEY }}'
sshKeyName: 'id_ed25519'
branch : '${{ github.ref_name }}'
- name: Check output
if: steps.scan.outputs.vulns != ''
run: echo "Vulnerabilities detected; ${{ steps.scan.outputs.vulns }}" && exit 1