File tree Expand file tree Collapse file tree 3 files changed +40
-4
lines changed Expand file tree Collapse file tree 3 files changed +40
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Trivy Security Scan
2
+
3
+ on :
4
+ push :
5
+ branches : ["master"]
6
+ pull_request :
7
+ branches : ["master"]
8
+
9
+ jobs :
10
+ build :
11
+ name : Build and Scan
12
+ runs-on : ubuntu-20.04
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Set up Docker Buildx
18
+ uses : docker/setup-buildx-action@v1
19
+
20
+ - name : Build an image from Dockerfile
21
+ uses : docker/build-push-action@v2
22
+ with :
23
+ context : .
24
+ load : true
25
+ tags : ${{ github.repository }}:${{ github.sha }}
26
+
27
+ - name : Run Trivy vulnerability scanner
28
+ uses :
aquasecurity/[email protected]
29
+ with :
30
+ image-ref : " ${{ github.repository }}:${{ github.sha }}"
31
+ format : " table"
32
+ exit-code : " 1"
33
+ ignore-unfixed : true
34
+ vuln-type : " os,library"
35
+ severity : " CRITICAL,HIGH"
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ RUN cd server && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -l
14
14
RUN cd client && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-X 'main.Version=${VERSION}'" -o ../bin/ark .
15
15
16
16
# Second image, running the arkd executable
17
- FROM alpine:3.12
17
+ FROM alpine:3.18
18
+
19
+ RUN apk update && apk upgrade
18
20
19
21
WORKDIR /app
20
22
@@ -31,4 +33,3 @@ VOLUME /app/data
31
33
VOLUME /app/wallet-data
32
34
33
35
ENTRYPOINT [ "arkd" ]
34
-
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ This will compile the `arkd` and `ark` binaries for your current architecture. F
81
81
4 . Install dependencies:
82
82
83
83
``` sh
84
- go mod download
84
+ go work sync
85
85
```
86
86
87
87
5 . Build the project:
@@ -97,7 +97,7 @@ Note: You need to run `make build` in both the `server` and `client` directories
97
97
98
98
## Support
99
99
100
- If you encounter any issues or have questions, please file an issue on our [ GitHub Issues] ( https://github.com/ark-network/ark/issues ) page.
100
+ If you encounter any issues or have questions, please file an issue on our [ GitHub Issues] ( https://github.com/ark-network/ark/issues ) page.
101
101
102
102
## Security
103
103
You can’t perform that action at this time.
0 commit comments