Skip to content

[Snyk] Fix for 8 vulnerabilities #5

[Snyk] Fix for 8 vulnerabilities

[Snyk] Fix for 8 vulnerabilities #5

Workflow file for this run

name: Preview links
on:
pull_request_target:
branches:
- main
types: [opened]
defaults:
run:
working-directory: utils
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Create preview links
id: links
env:
PR_URL: ${{ github.event.pull_request.url }}
run: |
yarn create-preview-links "$PR_URL" "$PR_NUMBER"
- name: Comment
if: steps.links.outputs.comment != ''
env:
COMMENT: ${{ steps.links.outputs.comment }}
run: |
gh pr comment "$PR_NUMBER" --body "$COMMENT"