-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (42 loc) · 1.13 KB
/
Copy pathaudit.yaml
File metadata and controls
46 lines (42 loc) · 1.13 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
name: Audit dependencies
on:
pull_request:
paths:
- ".github/workflows/audit.yaml"
- "**/Cargo.toml"
- "Cargo.lock"
push:
branches: [main, next]
paths:
- ".github/workflows/audit.yaml"
- "**/Cargo.toml"
- "Cargo.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@a345acffa64b0eaede81a3d9aae6141214d9c8fc # v2.6.0
with:
runs-on: ubuntu-24.04
upload-sarif: false
scan-args: --lockfile=./Cargo.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@a345acffa64b0eaede81a3d9aae6141214d9c8fc # v2.6.0
with:
runs-on: ubuntu-24.04
fail-on-vuln: false
scan-args: --lockfile=./Cargo.lock