-
Notifications
You must be signed in to change notification settings - Fork 288
48 lines (48 loc) · 1.29 KB
/
vulnerability.yml
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
name: "Vulnerability scan"
on:
push:
tags:
- v*
branches:
- main
pull_request:
workflow_dispatch:
schedule:
# every day at 7am UTC
- cron: '0 7 * * *'
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
show-progress: false
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
with:
base-ref: ${{ github.event.pull_request.base.sha || github.event.before || github.sha }}
head-ref: ${{ github.event.pull_request.head.sha || github.sha }}
govulncheck:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
show-progress: false
- name: govulncheck
uses: golang/govulncheck-action@v1
with:
check-latest: true
repo-checkout: false
go-version-file: go.mod
- name: govulncheck for release module
uses: golang/govulncheck-action@v1
with:
check-latest: true
repo-checkout: false
cache: false # cache will be already setup by previous step
work-dir: release/cli
go-version-file: release/cli/go.mod