Skip to content

Commit 4b88c02

Browse files
authored
Merge pull request #110 from essentialkaos/develop
Version 13.2.0
2 parents 502f824 + ed3ef9a commit 4b88c02

File tree

6 files changed

+31
-30
lines changed

6 files changed

+31
-30
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ concurrency:
2424
group: ${{ github.workflow }}-${{ github.ref }}
2525
cancel-in-progress: true
2626

27-
env:
28-
SRC_DIR: src/github.com/${{ github.repository }}
29-
3027
jobs:
3128
Go:
3229
name: Go
@@ -37,22 +34,18 @@ jobs:
3734
go: [ '1.18.x', '1.19.x', '1.20.x' ]
3835

3936
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v3
39+
4040
- name: Set up Go
4141
uses: actions/setup-go@v4
4242
with:
4343
go-version: ${{ matrix.go }}
4444

45-
- name: Checkout
46-
uses: actions/checkout@v3
47-
with:
48-
path: ${{env.SRC_DIR}}
49-
5045
- name: Download dependencies
51-
working-directory: ${{env.SRC_DIR}}
5246
run: make deps
5347

5448
- name: Run tests
55-
working-directory: ${{env.SRC_DIR}}
5649
run: make test
5750

5851
Aligo:
@@ -62,22 +55,31 @@ jobs:
6255
needs: Go
6356

6457
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v3
60+
6561
- name: Set up Go
6662
uses: actions/setup-go@v4
6763
with:
6864
go-version: '1.19.x'
6965

70-
- name: Checkout
71-
uses: actions/checkout@v3
72-
with:
73-
path: ${{env.SRC_DIR}}
74-
7566
- name: Download dependencies
76-
working-directory: ${{env.SRC_DIR}}
7767
run: make deps
7868

7969
- name: Check Golang sources with Aligo
80-
uses: essentialkaos/aligo-action@v1
70+
uses: essentialkaos/aligo-action@v2
8171
with:
82-
path: ${{env.SRC_DIR}}
8372
files: ./...
73+
74+
Typos:
75+
name: Typos
76+
runs-on: ubuntu-latest
77+
78+
needs: Go
79+
80+
steps:
81+
- name: Checkout
82+
uses: actions/checkout@v3
83+
84+
- name: Check spelling
85+
uses: crate-ci/typos@master

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[files]
2+
extend-exclude = ["go.sum"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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.18+ 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://go.dev/doc/install)), then:
2121

2222
```bash
2323
go get -u github.com/essentialkaos/sslscan/v13

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99

1010
require (
1111
github.com/andybalholm/brotli v1.0.5 // indirect
12-
github.com/klauspost/compress v1.16.3 // indirect
12+
github.com/klauspost/compress v1.16.5 // indirect
1313
github.com/kr/pretty v0.3.1 // indirect
1414
github.com/kr/text v0.2.0 // indirect
1515
github.com/rogpeppe/go-internal v1.10.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHG
33
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
44
github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk=
55
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=
6+
github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI=
7+
github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
88
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
99
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
1010
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=

sslscan.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ import (
1919

2020
// ////////////////////////////////////////////////////////////////////////////////// //
2121

22-
// VERSION is current package version
23-
const VERSION = "13.1.5"
24-
2522
const (
2623
API_URL_INFO = "https://api.ssllabs.com/api/v3/info"
2724
API_URL_ANALYZE = "https://api.ssllabs.com/api/v3/analyze"
@@ -205,7 +202,7 @@ type AnalyzeInfo struct {
205202
}
206203

207204
type EndpointInfo struct {
208-
IPAdress string `json:"ipAddress"` // endpoint IP address, in IPv4 or IPv6 format
205+
IPAddress string `json:"ipAddress"` // endpoint IP address, in IPv4 or IPv6 format
209206
ServerName string `json:"serverName"` // server name retrieved via reverse DNS
210207
StatusMessage string `json:"statusMessage"` // assessment status message
211208
StatusDetails string `json:"statusDetails"` // code of the operation currently in progress
@@ -736,15 +733,15 @@ func formatBoolParam(v bool) string {
736733
func getUserAgent(app, version string) string {
737734
if app != "" && version != "" {
738735
return fmt.Sprintf(
739-
"%s/%s SSLScan/%s (go; %s; %s-%s)",
740-
app, version, VERSION, runtime.Version(),
736+
"%s/%s SSLScan/13 (go; %s; %s-%s)",
737+
app, version, runtime.Version(),
741738
runtime.GOARCH, runtime.GOOS,
742739
)
743740
}
744741

745742
return fmt.Sprintf(
746-
"SSLScan/%s (go; %s; %s-%s)",
747-
VERSION, runtime.Version(),
743+
"SSLScan/13 (go; %s; %s-%s)",
744+
runtime.Version(),
748745
runtime.GOARCH, runtime.GOOS,
749746
)
750747
}

0 commit comments

Comments
 (0)