File tree Expand file tree Collapse file tree 3 files changed +70
-8
lines changed Expand file tree Collapse file tree 3 files changed +70
-8
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ permissions:
15
15
16
16
jobs :
17
17
vuln-check :
18
- name : Docker Image Vulnerability Check
19
- uses : ./.github/workflows/vuln-check.yaml
18
+ name : Pre-release Docker Image Vulnerability Check
19
+ uses : ./.github/workflows/vuln-check-release .yaml
20
20
secrets : inherit
21
21
with :
22
22
branch : ${{ github.ref }}
Original file line number Diff line number Diff line change 7
7
description : " The branch on which to run the vulnerability check"
8
8
required : true
9
9
default : " main"
10
- workflow_call :
11
- inputs :
12
- branch :
13
- required : true
14
- type : string
15
10
16
11
permissions :
17
12
contents : read
57
52
cp dist/linux_amd64/default_linux_amd64_v1/observe-agent .
58
53
59
54
- name : Build an image from Dockerfile
60
- run : docker build -f packaging/docker/Dockerfile -t docker.io/${{ env.TEST_TAG}} .
55
+ run : docker build -f packaging/docker/Dockerfile -t docker.io/${{ env.TEST_TAG }} .
61
56
62
57
- name : Docker Scout
63
58
id : docker-scout
Original file line number Diff line number Diff line change
1
+ name : Pre-release Docker Image Vulnerability Check
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ branch :
7
+ required : true
8
+ type : string
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ env :
14
+ TEST_TAG : observeinc/observe-agent:test
15
+
16
+ jobs :
17
+ vuln-check :
18
+ runs-on : ubuntu-observe-agent-8cpu
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
24
+ ref : ${{ github.event.inputs.branch }}
25
+
26
+ - name : Login to Docker Hub
27
+ uses : docker/login-action@v3
28
+ with :
29
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
30
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
31
+
32
+ - name : Set up Docker Buildx
33
+ uses : docker/setup-buildx-action@v3
34
+
35
+ - name : Set up Go
36
+ uses : actions/setup-go@v5
37
+ with :
38
+ go-version : 1.23.7
39
+
40
+ - name : Run GoReleaser
41
+ uses : goreleaser/goreleaser-action@v6
42
+ with :
43
+ distribution : goreleaser-pro
44
+ version : 2.7.0
45
+ args : build --snapshot --id=default --skip=validate --single-target
46
+ env :
47
+ GORELEASER_KEY : ${{ secrets.GORELEASER_KEY }}
48
+
49
+ - name : Copy Binary
50
+ run : |
51
+ cp dist/linux_amd64/default_linux_amd64_v1/observe-agent .
52
+
53
+ - name : Build an image from Dockerfile
54
+ run : docker build -f packaging/docker/Dockerfile -t docker.io/${{ env.TEST_TAG }} .
55
+
56
+ - name : Docker Scout
57
+ id : docker-scout
58
+ uses : docker/scout-action@v1
59
+ with :
60
+ image : ${{ env.TEST_TAG }}
61
+ command : cves,recommendations
62
+ to-latest : true
63
+ ignore-base : true
64
+ ignore-unchanged : true
65
+ only-fixed : true
66
+ only-severities : medium,critical,high
67
+ exit-code : true
You can’t perform that action at this time.
0 commit comments