Skip to content

Commit 679915e

Browse files
committed
merge master into "reverse-boarding"
2 parents 757ba33 + 1b9660e commit 679915e

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

.github/workflows/ark.trivy.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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"

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ RUN cd server && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -l
1414
RUN cd client && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-X 'main.Version=${VERSION}'" -o ../bin/ark .
1515

1616
# Second image, running the arkd executable
17-
FROM alpine:3.12
17+
FROM alpine:3.18
18+
19+
RUN apk update && apk upgrade
1820

1921
WORKDIR /app
2022

@@ -31,4 +33,3 @@ VOLUME /app/data
3133
VOLUME /app/wallet-data
3234

3335
ENTRYPOINT [ "arkd" ]
34-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This will compile the `arkd` and `ark` binaries for your current architecture. F
8181
4. Install dependencies:
8282

8383
```sh
84-
go mod download
84+
go work sync
8585
```
8686

8787
5. Build the project:
@@ -97,7 +97,7 @@ Note: You need to run `make build` in both the `server` and `client` directories
9797

9898
## Support
9999

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.
101101

102102
## Security
103103

0 commit comments

Comments
 (0)