-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (50 loc) · 1.3 KB
/
Copy pathaudit.yaml
File metadata and controls
54 lines (50 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Audit dependencies
on:
pull_request:
paths:
- ".github/workflows/audit.yaml"
- "Cargo.toml"
- "Cargo.lock"
- "web/package.json"
- "web/bun.lock"
push:
branches: [main]
paths:
- ".github/workflows/audit.yaml"
- "Cargo.toml"
- "Cargo.lock"
- "web/package.json"
- "web/bun.lock"
schedule:
# Every Monday at 12:30 UTC
- cron: "30 12 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
scan-pr:
if: github.event_name == 'pull_request'
permissions:
actions: read
contents: read
security-events: write
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@6e4298ebc4db23e847df9b2e2de2939d6f066c67 # v2.5.1
with:
runs-on: ubuntu-24.04
upload-sarif: false
scan-args: |-
--lockfile=./Cargo.lock
--lockfile=./web/bun.lock
scan:
if: github.event_name != 'pull_request'
permissions:
actions: read
contents: read
security-events: write
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@6e4298ebc4db23e847df9b2e2de2939d6f066c67 # v2.5.1
with:
runs-on: ubuntu-24.04
fail-on-vuln: false
scan-args: |-
--lockfile=./Cargo.lock
--lockfile=./web/bun.lock