Skip to content

Commit

Permalink
feat(os): support Alpine Linux 3.16 (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n authored Jun 15, 2022
1 parent 5234306 commit 847d820
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV REPOSITORY github.com/future-architect/vuls
COPY . $GOPATH/src/$REPOSITORY
RUN cd $GOPATH/src/$REPOSITORY && make install

FROM alpine:3.15
FROM alpine:3.16

ENV LOGDIR /var/log/vuls
ENV WORKDIR /vuls
Expand Down
1 change: 1 addition & 0 deletions config/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func GetEOL(family, release string) (eol EOL, found bool) {
"3.13": {StandardSupportUntil: time.Date(2022, 11, 1, 23, 59, 59, 0, time.UTC)},
"3.14": {StandardSupportUntil: time.Date(2023, 5, 1, 23, 59, 59, 0, time.UTC)},
"3.15": {StandardSupportUntil: time.Date(2023, 11, 1, 23, 59, 59, 0, time.UTC)},
"3.16": {StandardSupportUntil: time.Date(2024, 5, 23, 23, 59, 59, 0, time.UTC)},
}[majorDotMinor(release)]
case constant.FreeBSD:
// https://www.freebsd.org/security/
Expand Down
10 changes: 9 additions & 1 deletion config/os_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,16 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) {
found: true,
},
{
name: "Alpine 3.16 not found",
name: "Alpine 3.16 supported",
fields: fields{family: Alpine, release: "3.16"},
now: time.Date(2024, 5, 23, 23, 59, 59, 0, time.UTC),
stdEnded: false,
extEnded: false,
found: true,
},
{
name: "Alpine 3.17 not found",
fields: fields{family: Alpine, release: "3.17"},
now: time.Date(2022, 1, 14, 23, 59, 59, 0, time.UTC),
stdEnded: false,
extEnded: false,
Expand Down

0 comments on commit 847d820

Please sign in to comment.