Skip to content

Commit 98dbcee

Browse files
committed
feat: Fixed vulnerabilities
1 parent 1be803e commit 98dbcee

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ jobs:
1818
github_token: ${{ secrets.github_token }}
1919
locale: "US"
2020
pattern: "*.md"
21+
filter_mode: nofilter

Dockerfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
FROM debian:bullseye-slim@sha256:2f2307d7c75315ca7561e17a4e3aa95d58837f326954af08514044e8286e6d65
1+
FROM golang:1.23-alpine@sha256:9a425d78a8257fc92d41ad979d38cb54005bac3fdefbdadde868e004eccbb898
22

33
ENV REVIEWDOG_VERSION=v0.20.3
44

5-
RUN apt-get update \
6-
&& apt-get install -y --no-install-recommends \
5+
RUN apk add --no-cache \
76
ca-certificates \
87
git \
98
wget \
109
curl \
11-
&& apt-get clean \
12-
&& rm -rf /var/lib/apt/lists/*
10+
bash
11+
12+
RUN git clone --depth 1 --branch ${REVIEWDOG_VERSION} https://github.com/reviewdog/reviewdog.git /reviewdog \
13+
&& cd /reviewdog \
14+
&& go mod edit -require=golang.org/x/crypto@v0.35.0 \
15+
&& go mod tidy \
16+
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o reviewdog ./cmd/reviewdog \
17+
&& mv reviewdog /usr/local/bin/reviewdog \
18+
&& cd / \
19+
&& rm -rf /reviewdog /go/pkg /root/.cache /root/go
1320

14-
RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/fd59714416d6d9a1c0692d872e38e7f8448df4fc/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
1521
RUN wget -O - -q https://raw.githubusercontent.com/golangci/misspell/master/install-misspell.sh | sh -s -- -b /usr/local/bin/
1622

1723
COPY entrypoint.sh /entrypoint.sh
1824

19-
ENTRYPOINT ["/entrypoint.sh"]
25+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)