Skip to content

Commit 502f824

Browse files
authored
Merge pull request #108 from essentialkaos/develop
Version 13.1.5
2 parents 62a09a2 + 160c3df commit 502f824

File tree

7 files changed

+48
-61
lines changed

7 files changed

+48
-61
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,23 @@ on:
77
branches: [master]
88
schedule:
99
- cron: '0 13 */15 * *'
10+
workflow_dispatch:
11+
inputs:
12+
force_run:
13+
description: 'Force workflow run'
14+
required: true
15+
type: choice
16+
options: [yes, no]
1017

1118
permissions:
1219
actions: read
1320
contents: read
1421
statuses: write
1522

23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
26+
1627
env:
1728
SRC_DIR: src/github.com/${{ github.repository }}
1829

@@ -23,11 +34,11 @@ jobs:
2334

2435
strategy:
2536
matrix:
26-
go: [ '1.18.x', '1.19.x' ]
37+
go: [ '1.18.x', '1.19.x', '1.20.x' ]
2738

2839
steps:
2940
- name: Set up Go
30-
uses: actions/setup-go@v3
41+
uses: actions/setup-go@v4
3142
with:
3243
go-version: ${{ matrix.go }}
3344

@@ -52,9 +63,9 @@ jobs:
5263

5364
steps:
5465
- name: Set up Go
55-
uses: actions/setup-go@v3
66+
uses: actions/setup-go@v4
5667
with:
57-
go-version: '1.17.x'
68+
go-version: '1.19.x'
5869

5970
- name: Checkout
6071
uses: actions/checkout@v3

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
################################################################################
22

3-
# This Makefile generated by GoMakeGen 2.1.0 using next command:
3+
# This Makefile generated by GoMakeGen 2.2.0 using next command:
44
# gomakegen --mod .
55
#
66
# More info: https://kaos.sh/gomakegen
@@ -87,6 +87,6 @@ help: ## Show this info
8787
| sed 's/ifdef //' \
8888
| awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-14s\033[0m %s\n", $$1, $$2}'
8989
@echo -e ''
90-
@echo -e '\033[90mGenerated by GoMakeGen 2.1.0\033[0m\n'
90+
@echo -e '\033[90mGenerated by GoMakeGen 2.2.0\033[0m\n'
9191

9292
################################################################################

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,10 @@ Package for Go for working with [SSLLabs](https://www.ssllabs.com) public API.
1717

1818
### Installation
1919

20-
To build the SSLScan from scratch, make sure you have a working Go 1.17+ workspace ([instructions](https://golang.org/doc/install)), then:
20+
To build the SSLScan from scratch, make sure you have a working Go 1.18+ workspace ([instructions](https://golang.org/doc/install)), then:
2121

22-
```
23-
go get -d github.com/essentialkaos/sslscan/v13
24-
```
25-
26-
If you want update SSLScan package to latest stable release, do:
27-
28-
```
29-
go get -d -u github.com/essentialkaos/sslscan/v13
22+
```bash
23+
go get -u github.com/essentialkaos/sslscan/v13
3024
```
3125

3226
### Build Status

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module github.com/essentialkaos/sslscan/v13
22

3-
go 1.17
3+
go 1.18
44

55
require (
6-
github.com/essentialkaos/check v1.3.0
7-
github.com/valyala/fasthttp v1.43.0
6+
github.com/essentialkaos/check v1.4.0
7+
github.com/valyala/fasthttp v1.45.0
88
)
99

1010
require (
11-
github.com/andybalholm/brotli v1.0.4 // indirect
12-
github.com/klauspost/compress v1.15.9 // indirect
13-
github.com/kr/pretty v0.3.0 // indirect
11+
github.com/andybalholm/brotli v1.0.5 // indirect
12+
github.com/klauspost/compress v1.16.3 // indirect
13+
github.com/kr/pretty v0.3.1 // indirect
1414
github.com/kr/text v0.2.0 // indirect
15-
github.com/rogpeppe/go-internal v1.6.1 // indirect
15+
github.com/rogpeppe/go-internal v1.10.0 // indirect
1616
github.com/valyala/bytebufferpool v1.0.0 // indirect
1717
)

go.sum

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
1-
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY=
2-
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
1+
github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs=
2+
github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
33
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
4-
github.com/essentialkaos/check v1.3.0 h1:ria+8o22RCLdt2D/1SHQsEH5Mmy5S+iWHaGHrrbPUc0=
5-
github.com/essentialkaos/check v1.3.0/go.mod h1:PhxzfJWlf5L/skuyhzBLIvjMB5Xu9TIyDIsqpY5MvB8=
6-
github.com/klauspost/compress v1.15.9 h1:wKRjX6JRtDdrE9qwa4b/Cip7ACOshUI4smpCQanqjSY=
7-
github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU=
8-
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
9-
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
10-
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
11-
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
12-
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
4+
github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk=
5+
github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0=
6+
github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY=
7+
github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
8+
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
9+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
1310
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
1411
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
15-
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
16-
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
12+
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
13+
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
14+
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
15+
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
1716
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
1817
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
19-
github.com/valyala/fasthttp v1.43.0 h1:Gy4sb32C98fbzVWZlTM1oTMdLWGyvxR03VhM6cBIU4g=
20-
github.com/valyala/fasthttp v1.43.0/go.mod h1:f6VbjjoI3z1NDOZOv17o6RvtRSWxC77seBFc2uWtgiY=
21-
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
22-
golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
23-
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
24-
golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
25-
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
26-
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
27-
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
28-
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
29-
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
30-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
31-
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
32-
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
33-
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
34-
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
35-
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
18+
github.com/valyala/fasthttp v1.45.0 h1:zPkkzpIn8tdHZUrVa6PzYd0i5verqiPSkgTd3bSUcpA=
19+
github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA=

sslscan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
// ////////////////////////////////////////////////////////////////////////////////// //
2121

2222
// VERSION is current package version
23-
const VERSION = "13.1.3"
23+
const VERSION = "13.1.5"
2424

2525
const (
2626
API_URL_INFO = "https://api.ssllabs.com/api/v3/info"

sslscan_test.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,14 @@ func (s *SSLLabsSuite) TestAnalyze(c *check.C) {
290290
c.Assert(details.HSTSPolicy, check.NotNil)
291291
c.Assert(details.HSTSPolicy.Status, check.Equals, HSTS_STATUS_PRESENT)
292292
c.Assert(details.HSTSPreloads, check.HasLen, 4)
293-
c.Assert(details.HSTSPreloads[0].Source, check.Equals, "Chrome")
294-
c.Assert(details.HSTSPreloads[0].Hostname, check.Equals, "github.com")
295-
c.Assert(details.HSTSPreloads[0].Status, check.Equals, HSTS_STATUS_PRESENT)
296-
c.Assert(details.HSTSPreloads[0].Error, check.Equals, "")
297-
c.Assert(details.HSTSPreloads[0].SourceTime, check.Not(check.Equals), 0)
293+
c.Assert(details.HSTSPreloads[2].Source, check.Equals, "Firefox")
294+
c.Assert(details.HSTSPreloads[2].Hostname, check.Equals, "github.com")
295+
c.Assert(details.HSTSPreloads[2].Status, check.Equals, HSTS_STATUS_PRESENT)
296+
c.Assert(details.HSTSPreloads[2].Error, check.Equals, "")
297+
c.Assert(details.HSTSPreloads[2].SourceTime, check.Not(check.Equals), 0)
298298
c.Assert(details.HPKPPolicy.Status, check.Equals, HPKP_STATUS_ABSENT)
299299
c.Assert(details.HPKPRoPolicy.Status, check.Equals, HPKP_STATUS_ABSENT)
300-
c.Assert(details.StaticPKPPolicy.Status, check.Equals, SPKP_STATUS_ABSENT)
300+
c.Assert(details.StaticPKPPolicy.Status, check.Equals, SPKP_STATUS_UNKNOWN)
301301
c.Assert(details.HTTPTransactions, check.Not(check.HasLen), 0)
302302
c.Assert(details.HTTPTransactions[0].RequestURL, check.Equals, "https://github.com/")
303303
c.Assert(details.HTTPTransactions[0].StatusCode, check.Equals, 200)
@@ -307,8 +307,6 @@ func (s *SSLLabsSuite) TestAnalyze(c *check.C) {
307307
c.Assert(details.HTTPTransactions[0].ResponseHeadersRaw, check.Not(check.HasLen), 0)
308308
c.Assert(details.HTTPTransactions[0].ResponseHeaders, check.Not(check.HasLen), 0)
309309
c.Assert(details.HTTPTransactions[0].FragileServer, check.Equals, false)
310-
c.Assert(details.DrownErrors, check.Equals, false)
311-
c.Assert(details.DrownVulnerable, check.Equals, false)
312310
c.Assert(details.ImplementsTLS13MandatoryCS, check.Equals, true)
313311
c.Assert(details.ZeroRTTEnabled, check.Equals, 0)
314312

0 commit comments

Comments
 (0)