diff --git a/.gitea/workflows/npm-audit.yaml b/.gitea/workflows/npm-audit.yaml new file mode 100644 index 0000000..da5e17f --- /dev/null +++ b/.gitea/workflows/npm-audit.yaml @@ -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 \ No newline at end of file