#63 npm audit自動実行フローの追加、Huskyでcheckout時にnpm install実行するよう構築 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: "0 0 * * *" # 毎日日本時間9時実行 | |
pull_request: | |
paths: | |
- "Hosting/**" | |
jobs: | |
npm-audit: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: Hosting | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Run npm audit | |
run: npm audit --audit-level=high --omit=dev |