mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
simplify bundle lock and setup snyk
This commit is contained in:
parent
7786c9193e
commit
a45372031d
2 changed files with 19 additions and 1 deletions
18
.github/workflows/snyk.yml
vendored
Normal file
18
.github/workflows/snyk.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: Snyk
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
security:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: snyk/actions/setup@master
|
||||
- name: update lockfile
|
||||
run: ./update-gemfile-lock.sh
|
||||
- name: Run Snyk to check for vulnerabilities
|
||||
run: snyk monitor --file=Gemfile.lock
|
||||
env:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_DIO_KEY }}
|
||||
|
|
@ -3,4 +3,4 @@
|
|||
docker run -it --rm \
|
||||
-v $(pwd):/app \
|
||||
$(grep ^FROM docker/Dockerfile |cut -d ' ' -f2) \
|
||||
/bin/bash -c 'apt-get update -qq && apt-get install -y --no-install-recommends make && cd /app && gem install bundler && bundle install --jobs 3 && bundle update; echo "LOCK_FILE_UPDATE_EXIT_CODE=$?"'
|
||||
/bin/bash -c 'cd /app && gem install bundler && bundle lock --update; echo "LOCK_FILE_UPDATE_EXIT_CODE=$?"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue