---
name: Snyk Clojure Merge

on: push

jobs:
 snyk_clojure:
   runs-on: ubuntu-latest
   steps:
    - name: checkout the current PR
      uses: actions/checkout@v2
      with:
        fetch-depth: 1
        persist-credentials: false
    - name: Run Clojure Snyk Scan
      id: scan
      # rather than point to a version tag, this points to
      # a specific branch
      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: 'ezbake'
        #snykPolicy: '.snyk'
    - name: Check output
      if: steps.scan.outputs.vulns != ''
      run: echo "Vulnerabilities detected; ${{ steps.scan.outputs.vulns }}" && exit 1

---
name: Snyk Clojure Merge

on: push

jobs:
 snyk_clojure:
   runs-on: ubuntu-latest
   steps:
    - name: Connect to Twingate
      uses: twingate/github-action@v1
      with:
        service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
    - name: checkout the current PR
      uses: actions/checkout@v2
      with:
        fetch-depth: 1
        persist-credentials: false
    - name: Run Clojure Snyk Scan
      id: scan
      # rather than point to a version tag, this points to
      # a specific branch
      uses: puppetlabs/security-snyk-clojure-action@v2
      with:
        snykToken: ${{ secrets.SNYK_PE_TOKEN }}
        snykOrg: 'puppet-enterprise'
        snykProject: 'ezbake'
        #snykPolicy: '.snyk'
    - name: Check output
      if: steps.scan.outputs.vulns != ''
      run: echo "Vulnerabilities detected; ${{ steps.scan.outputs.vulns }}" && exit 1

Update snyk clojure action to v2
Update snyk clojure action to v2