CI pod audyt wersji bibliotek
This commit is contained in:
31
.gitea/workflows/npm-audit.yaml
Normal file
31
.gitea/workflows/npm-audit.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: npm audit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'releases/*'
|
||||
# on:
|
||||
# schedule:
|
||||
# - cron: '0 10 * * *'
|
||||
|
||||
jobs:
|
||||
scan:
|
||||
name: npm audit
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Node.JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: install dependencies
|
||||
run: npm ci
|
||||
- uses: oke-py/npm-audit-action@v3
|
||||
with:
|
||||
audit_level: moderate
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue_assignees: ghostfox
|
||||
issue_labels: vulnerability,test
|
||||
dedupe_issues: true
|
||||
Reference in New Issue
Block a user