This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
(maint) Update facter to 06a0618adaf51ccd14a94e5bd7b0db3530d2b51c #1040
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 Monitor | |
on: | |
push: | |
branches: [7.x] | |
jobs: | |
snyk_monitor: | |
if: ${{ github.repository_owner == 'puppetlabs' }} | |
runs-on: ubuntu-latest | |
name: Snyk Monitor | |
steps: | |
- name: Checkout current PR | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- name: Install dependencies | |
run: bundle install --jobs 3 --retry 3 | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF_NAME})" | |
id: extract_branch | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/ruby@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_PE_TOKEN }} | |
with: | |
command: monitor | |
args: --org=puppet-enterprise --project-name=${{ github.repository }} --target-reference=${{ steps.extract_branch.outputs.branch }} |