Skip to content

Commit

Permalink
fix(eol): add eol for alpine 3.13 (future-architect#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe authored Jan 27, 2021
1 parent 51099f4 commit dd2959a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ For more information such as Installation, Tutorial, Usage, visit [vuls.io](http

kotakanbe ([@kotakanbe](https://twitter.com/kotakanbe)) created vuls and [these fine people](https://github.com/future-architect/vuls/graphs/contributors) have contributed.

## Contribute

see [vulsdoc](https://vuls.io/docs/en/how-to-contribute.html)

----

## Stargazers over time
Expand Down
1 change: 1 addition & 0 deletions config/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func GetEOL(family, release string) (eol EOL, found bool) {
"3.10": {StandardSupportUntil: time.Date(2021, 5, 1, 23, 59, 59, 0, time.UTC)},
"3.11": {StandardSupportUntil: time.Date(2021, 11, 1, 23, 59, 59, 0, time.UTC)},
"3.12": {StandardSupportUntil: time.Date(2022, 5, 1, 23, 59, 59, 0, time.UTC)},
"3.13": {StandardSupportUntil: time.Date(2022, 11, 1, 23, 59, 59, 0, time.UTC)},
}[majorDotMinor(release)]
case FreeBSD:
// https://www.freebsd.org/security/
Expand Down
6 changes: 3 additions & 3 deletions config/os_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,16 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) {
found: true,
},
{
name: "Debian 3.9 eol",
name: "Alpine 3.9 eol",
fields: fields{family: Alpine, release: "3.9"},
now: time.Date(2021, 1, 6, 23, 59, 59, 0, time.UTC),
stdEnded: true,
extEnded: true,
found: true,
},
{
name: "Debian 3.13 not found",
fields: fields{family: Alpine, release: "3.13"},
name: "Alpine 3.14 not found",
fields: fields{family: Alpine, release: "3.14"},
now: time.Date(2021, 1, 6, 23, 59, 59, 0, time.UTC),
stdEnded: false,
extEnded: false,
Expand Down

0 comments on commit dd2959a

Please sign in to comment.