Use pnpm instead of yarn (#1237) #2981
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
security: | |
runs-on: ubuntu-latest | |
env: | |
SNYK_COMMAND: test | |
steps: | |
- name: Checkout branch | |
if: github.ref == 'refs/heads/main' | |
uses: actions/checkout@v2 | |
- name: Set command to monitor | |
if: github.ref == 'refs/heads/main' | |
run: echo "SNYK_COMMAND=monitor" >> $GITHUB_ENV | |
- name: Run Snyk to check for vulnerabilities | |
if: github.ref == 'refs/heads/main' | |
uses: snyk/actions/[email protected] | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
args: --org=guardian-growth --project-name=${{ github.repository }} --file=./yarn.lock | |
command: ${{ env.SNYK_COMMAND }} |