Skip to content

[Snyk] Fix for 2 vulnerabilities #391

[Snyk] Fix for 2 vulnerabilities

[Snyk] Fix for 2 vulnerabilities #391

Workflow file for this run

name: Update lockfile
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
update-lockfile:
if: startsWith(github.head_ref, 'snyk-')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Update lockfile
run: |
cd client
yarn install
- name: Check for changes
run: |
if ! git diff --quiet client/yarn.lock; then
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add client/yarn.lock
git commit -n -m "chore(snyk): update lockfile"
git push
fi