Merge pull request #2863 from puppetlabs/binford2k-patch-2 #434
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Snyk Clojure Push Check | |
on: push | |
jobs: | |
snyk_clojure: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout the current branch head | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
persist-credentials: false | |
- name: Run Clojure Snyk Scan | |
id: scan | |
uses: puppetlabs/security-snyk-clojure-action@v1 | |
with: | |
snykToken: ${{ secrets.SNYK_PE_TOKEN }} | |
rproxyKey: ${{ secrets.SEC_PUBLIC_RPROXY_KEY }} | |
rproxyUser: ${{ secrets.SEC_PUBLIC_RPROXY_USER }} | |
snykOrg: 'puppet-enterprise' | |
snykProject: 'puppetserver' | |
snykPolicy: '.snyk' | |
- name: Check output | |
if: steps.scan.outputs.vulns != '' | |
run: echo "Vulnerabilities detected; ${{ steps.scan.outputs.vulns }}" && exit 1 |