Files
npm-audit-action/.github/workflows/daily.yml
dependabot[bot] f761856646 build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-08 14:34:15 +00:00

44 lines
1.2 KiB
YAML

name: daily scan
on:
schedule:
- cron: '0 20 * * *'
jobs:
scan:
name: npm audit
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: npm ci
- uses: oke-py/npm-audit-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
issue_assignees: oke-py
issue_labels: vulnerability
dedupe_issues: true
production_flag: true
scan-on-windows:
name: npm audit
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc
- run: |
npm install npm-windows-upgrade --location=global
npm-windows-upgrade --npm-version latest
- name: install dependencies
run: npm ci
- uses: oke-py/npm-audit-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
issue_assignees: oke-py
issue_labels: vulnerability
dedupe_issues: true
production_flag: true