mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-07-15 21:31:36 +03:00
33 lines
875 B
YAML
33 lines
875 B
YAML
name: update-snyk
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- 'composer*'
|
|
- 'package*'
|
|
branches:
|
|
- 'development'
|
|
- 'release'
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/library/node:24-trixie
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/checkout@v6
|
|
|
|
- name: Update Snyk for monitoring - Composer
|
|
uses: https://github.com/snyk/actions/node@master
|
|
env:
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
|
with:
|
|
args: snyk monitor --file=composer.lock --project-name=bookstack-${{forgejo.ref_name}}-composer
|
|
|
|
- name: Update Snyk for monitoring - NPM
|
|
uses: https://github.com/snyk/actions/node@master
|
|
env:
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
|
with:
|
|
args: snyk monitor --file=package-lock.json --project-name=bookstack-${{forgejo.ref_name}}-npm |