Skip to content

Commit fb4f29a

Browse files
authored
Merge pull request #706 from Savvythelegend/chore/fix-dockerfile-lint
chore(docker): fix casing of AS keyword to resolve linter warnings
2 parents 7c7e3e1 + 2fdb31b commit fb4f29a

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

Dockerfile

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
ARG GO_VERSION=1.21
22
ARG HTMLTEST_VERSION=0.17.0
33

4-
FROM golang:${GO_VERSION}-alpine as base
4+
FROM golang:${GO_VERSION}-alpine AS base
55
WORKDIR /src
66
RUN apk --update add nodejs npm git gcompat
77

8-
FROM base as node
8+
FROM base AS node
99
COPY package*.json .
1010
ENV NODE_ENV=production
1111
RUN npm install
1212

13-
FROM base as hugo
13+
FROM base AS hugo
1414
ARG HUGO_VERSION=0.122.0
1515
ARG TARGETARCH
1616
WORKDIR /tmp/hugo
1717
RUN wget -O "hugo.tar.gz" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
1818
RUN tar -xf "hugo.tar.gz" hugo
1919

20-
FROM base as build-base
20+
FROM base AS build-base
2121
COPY --from=hugo /tmp/hugo/hugo /bin/hugo
2222
COPY --from=node /src/node_modules /src/node_modules
2323
COPY . .
2424

25-
FROM build-base as dev
25+
FROM build-base AS dev
2626

27-
FROM build-base as build
27+
FROM build-base AS build
2828
ARG HUGO_ENV
2929
ARG DOCS_URL
3030
RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
3131

32-
FROM scratch as release
32+
FROM scratch AS release
3333
COPY --from=build /out /
3434

35-
FROM scratch as update-stats
35+
FROM scratch AS update-stats
3636
COPY --from=build /src/hugo_stats.json /hugo_stats.json
3737

38-
FROM build as validate-stats
38+
FROM build AS validate-stats
3939
RUN <<EOF
4040
if [ -n "$(git status --porcelain -- hugo_stats.json)" ]; then
4141
echo >&2 'ERROR: hugo_stats.json differs. Update with `docker buildx bake update-stats`'
4242
exit 1
4343
fi
4444
EOF
4545

46-
FROM davidanson/markdownlint-cli2:v0.12.1 as lint
46+
FROM davidanson/markdownlint-cli2:v0.12.1 AS lint
4747
USER root
4848
RUN --mount=type=bind,target=. \
4949
/usr/local/bin/markdownlint-cli2 \
5050
"content/**/*.md" \
5151
"#content/engine/release-notes/*.md" \
5252
"#content/desktop/previous-versions/*.md"
5353

54-
FROM wjdp/htmltest:v${HTMLTEST_VERSION} as test
54+
FROM wjdp/htmltest:v${HTMLTEST_VERSION} AS test
5555
WORKDIR /test
5656
COPY --from=build /out ./public
5757
ADD .htmltest.yml .htmltest.yml
5858
RUN htmltest
5959

60-
FROM build-base as update-modules
60+
FROM build-base AS update-modules
6161
ARG MODULE
6262
RUN <<"EOT"
6363
set -ex
@@ -71,21 +71,21 @@ fi
7171
EOT
7272
RUN hugo mod vendor
7373

74-
FROM scratch as vendor
74+
FROM scratch AS vendor
7575
COPY --from=update-modules /src/_vendor /_vendor
7676
COPY --from=update-modules /src/go.* /
7777

78-
FROM build-base as build-upstream
78+
FROM build-base AS build-upstream
7979
ARG UPSTREAM_MODULE_NAME
8080
ARG UPSTREAM_REPO
8181
ARG UPSTREAM_COMMIT
8282
ENV HUGO_MODULE_REPLACEMENTS="github.com/${UPSTREAM_MODULE_NAME} -> github.com/${UPSTREAM_REPO} ${UPSTREAM_COMMIT}"
8383
RUN hugo --ignoreVendorPaths "github.com/${UPSTREAM_MODULE_NAME}" -d /out
8484

85-
FROM wjdp/htmltest:v${HTMLTEST_VERSION} as validate-upstream
85+
FROM wjdp/htmltest:v${HTMLTEST_VERSION} AS validate-upstream
8686
WORKDIR /test
8787
COPY --from=build-upstream /out ./public
8888
ADD .htmltest.yml .htmltest.yml
8989
RUN htmltest
9090

91-
FROM dev
91+
FROM dev

SECURITY.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Security Policy
2-
We are very grateful to the security researchers and users that report
3-
back Layer5 project security vulnerabilities. We investigate every report thoroughly.
2+
We are very grateful to the security researchers and users who report
3+
Layer5 project security vulnerabilities. We investigate every report thoroughly.
44

55
## Reporting a vulnerability
66
To make a report, send an email to the private
@@ -16,36 +16,36 @@ Send us a report whenever you:
1616
- Think Layer5 projects have a potential security vulnerability.
1717
- Are unsure whether or how a vulnerability affects Layer5 projects.
1818
- Think a vulnerability is present in another project that Layer5 projects
19-
depend on (Docker for example).
19+
depend on (Docker, for example).
2020

2121
### When not to report a security vulnerability?
2222

2323
Don't send a vulnerability report if:
2424

2525
- You need help tuning Layer5 project components for security.
26-
- You need help applying security related updates.
27-
- Your issue is not security related.
26+
- You need help applying security-related updates.
27+
- Your issue is not security-related.
2828

2929
## Evaluation
3030

3131
The Layer5 team acknowledges and analyzes each vulnerability report within 10 working days.
3232

3333
Any vulnerability information you share with the Layer5 team stays
34-
within the Layer5 project. We don't disseminate the information to other
34+
within the Layer5 project. We do not disseminate the information to other
3535
projects. We only share the information as needed to fix the issue.
3636

37-
We keep the reporter updated as the status of the security issue is addressed.
37+
We keep the reporter updated on the status of the security issue as it is addressed.
3838

3939
## Fixing the issue
4040

4141
Once a security vulnerability has been fully characterized, a fix is developed by the Layer5 team.
42-
The development and testing for the fix happens in a private GitHub repository in order to prevent
42+
The development and testing for the fix happen in a private GitHub repository in order to prevent
4343
premature disclosure of the vulnerability.
4444

4545
## Early disclosure
4646

4747
The Layer5 team maintains a mailing list for private early disclosure of security vulnerabilities.
48-
The list is used to provide actionable information to close Layer5 partners. The list is not intended
48+
The list is used to provide actionable information to trusted Layer5 partners. The list is not intended
4949
for individuals to find out about security issues.
5050

5151
## Public disclosure
@@ -54,11 +54,11 @@ On the day chosen for public disclosure, a sequence of activities takes place as
5454

5555
- Changes are merged from the private GitHub repository holding the fix into the appropriate set of public
5656
branches.
57-
- Layer5 team ensures all necessary binaries are promptly built and published.
57+
- The Layer5 team ensures all necessary binaries are promptly built and published.
5858
- Once the binaries are available, an announcement is sent out on the following channels:
5959
- The [Layer5 blog](https://layer5.io/blog/)
6060
- The [Layer5 Twitter feed](https://twitter.com/layer5)
6161
- The #announcements channel on Slack
6262

63-
As much as possible this announcement will be actionable, and include any mitigating steps customers can take prior to
64-
upgrading to a fixed version.
63+
As much as possible, this announcement will be actionable and include any mitigating steps customers can take prior to
64+
upgrading to a fixed version.

0 commit comments

Comments
 (0)