-
Notifications
You must be signed in to change notification settings - Fork 310
51 lines (51 loc) · 1.42 KB
/
deps.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
49
50
51
name: "Dependency Review"
on:
push:
branches:
- master
- 'release-*'
pull_request:
workflow_dispatch:
inputs:
head_ref:
description: 'HEAD git reference (tag/branch/commit) to analyze'
required: true
default: 'master'
type: string
base_ref:
description: 'Base git reference (tag/branch/commit) to compare against head_ref'
required: true
default: 'master'
type: string
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@v4
with:
base-ref: ${{ inputs.base_ref || github.event.pull_request.base.sha || 'master' }}
head-ref: ${{ inputs.head_ref || github.event.pull_request.head.sha || github.ref }}
govulncheck:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
show-progress: false
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.2
go-version-file: go.mod
- id: govulncheck-tests-e2e
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.2
go-version-file: tests/e2e/go.mod