Skip to content

Commit a07f839

Browse files
authored
Merge pull request #1032 from projectdiscovery/dev
httpx v1.2.8
2 parents c6998f4 + a9028e2 commit a07f839

14 files changed

+130
-125
lines changed

.github/workflows/build-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 🔨 Build Test
22

33
on:
44
pull_request:
5+
paths:
6+
- '**.go'
7+
- '**.mod'
58
workflow_dispatch:
69

710
jobs:
@@ -10,7 +13,7 @@ jobs:
1013
runs-on: ${{ matrix.os }}
1114
strategy:
1215
matrix:
13-
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
os: [ubuntu-latest-16-cores, windows-latest-8-cores, macOS-latest]
1417
steps:
1518
- name: Set up Go
1619
uses: actions/setup-go@v3

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ name: 🚨 CodeQL Analysis
33
on:
44
workflow_dispatch:
55
pull_request:
6+
paths:
7+
- '**.go'
68
branches:
79
- dev
810

911
jobs:
1012
analyze:
1113
name: Analyze
12-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-latest-16-cores
1315
permissions:
1416
actions: read
1517
contents: read

.github/workflows/dockerhub-push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ on:
99

1010
jobs:
1111
docker:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-latest-16-cores
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3
1616

1717
- name: Get Github tag
1818
id: meta
1919
run: |
20-
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/httpx/releases/latest" | jq -r .tag_name)"
20+
curl --silent "https://api.github.com/repos/projectdiscovery/httpx/releases/latest" | jq -r .tag_name | xargs -I {} echo TAG={} >> $GITHUB_OUTPUT
2121
2222
- name: Set up QEMU
2323
uses: docker/setup-qemu-action@v2
@@ -37,4 +37,4 @@ jobs:
3737
context: .
3838
platforms: linux/amd64,linux/arm64,linux/arm
3939
push: true
40-
tags: projectdiscovery/httpx:latest,projectdiscovery/httpx:${{ steps.meta.outputs.tag }}
40+
tags: projectdiscovery/httpx:latest,projectdiscovery/httpx:${{ steps.meta.outputs.TAG }}

.github/workflows/functional-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 🧪 Functional Test
22

33
on:
44
pull_request:
5+
paths:
6+
- '**.go'
7+
- '**.mod'
58
workflow_dispatch:
69

710
jobs:
@@ -10,7 +13,7 @@ jobs:
1013
runs-on: ${{ matrix.os }}
1114
strategy:
1215
matrix:
13-
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
os: [ubuntu-latest-16-cores, windows-latest-8-cores, macOS-latest]
1417
steps:
1518
- name: Set up Go
1619
uses: actions/setup-go@v3

.github/workflows/lint-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ name: 🙏🏻 Lint Test
22

33
on:
44
pull_request:
5+
paths:
6+
- '**.go'
7+
- '**.mod'
58
workflow_dispatch:
69

710
jobs:
811
lint:
912
name: Lint Test
10-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-latest-16-cores
1114
steps:
1215
- name: Set up Go
1316
uses: actions/setup-go@v3

.github/workflows/release-binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
release:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-latest-16-cores
1212
steps:
1313
- name: "Check out code"
1414
uses: actions/checkout@v3

.github/workflows/sonarcloud.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
FROM golang:1.20.0-alpine AS builder
2-
ARG BUILD_SOURCE_TAG=latest
1+
# Base
2+
FROM golang:1.20.1-alpine AS builder
3+
34
RUN apk add --no-cache git build-base gcc musl-dev
4-
RUN go install -v github.com/projectdiscovery/httpx/cmd/httpx@${BUILD_SOURCE_TAG}
5+
WORKDIR /app
6+
COPY . /app
7+
RUN go mod download
8+
RUN go build ./cmd/httpx
59

6-
FROM alpine:3.17.1
10+
FROM alpine:3.17.2
711
RUN apk -U upgrade --no-cache \
812
&& apk add --no-cache bind-tools ca-certificates
9-
COPY --from=builder /go/bin/httpx /usr/local/bin/
13+
COPY --from=builder /app/httpx /usr/local/bin/
1014

11-
ENTRYPOINT ["httpx"]
15+
ENTRYPOINT ["httpx"]

cmd/functional-test/testcases.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ scanme.sh {{binary}} -silent -body 'a=b'
1616
scanme.sh {{binary}} -silent -exclude-cdn
1717
scanme.sh {{binary}} -silent -ports https:443
1818
scanme.sh {{binary}} -silent -ztls
19-
https://scanme.sh?a=1*1 {{binary}} -silent
19+
https://scanme.sh?a=1*1 {{binary}} -silent
20+
https://scanme.sh:443 {{binary}} -asn

go.mod

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,46 @@ require (
1010
github.com/hbakhtiyor/strsim v0.0.0-20190107154042-4d2bbb273edf
1111
github.com/julienschmidt/httprouter v1.3.0
1212
github.com/logrusorgru/aurora v2.0.3+incompatible
13-
github.com/microcosm-cc/bluemonday v1.0.22
13+
github.com/microcosm-cc/bluemonday v1.0.23
1414
github.com/miekg/dns v1.1.50 // indirect
1515
github.com/pkg/errors v0.9.1
1616
github.com/projectdiscovery/cdncheck v0.0.4-0.20220413175814-b47bc2d578b1
1717
github.com/projectdiscovery/clistats v0.0.12
1818
github.com/projectdiscovery/fdmax v0.0.4
19-
github.com/projectdiscovery/goconfig v0.0.0-20210804090219-f893ccd0c69c
20-
github.com/projectdiscovery/goflags v0.1.6
21-
github.com/projectdiscovery/gologger v1.1.7
19+
github.com/projectdiscovery/goconfig v0.0.1
20+
github.com/projectdiscovery/goflags v0.1.8
21+
github.com/projectdiscovery/gologger v1.1.8
2222
github.com/projectdiscovery/hmap v0.0.9
2323
github.com/projectdiscovery/iputil v0.0.2 // indirect
24-
github.com/projectdiscovery/mapcidr v1.0.3
25-
github.com/projectdiscovery/rawhttp v0.1.9-0.20230208140210-81c468e769ed
26-
github.com/projectdiscovery/retryablehttp-go v1.0.11-0.20230208144003-54f3176b2916
24+
github.com/projectdiscovery/mapcidr v1.1.0
25+
github.com/projectdiscovery/rawhttp v0.1.9
26+
github.com/projectdiscovery/retryablehttp-go v1.0.12
2727
github.com/projectdiscovery/stringsutil v0.0.2 // indirect
28-
github.com/projectdiscovery/wappalyzergo v0.0.81
28+
github.com/projectdiscovery/wappalyzergo v0.0.85
2929
github.com/remeh/sizedwaitgroup v1.0.0
3030
github.com/rs/xid v1.4.0
3131
go.etcd.io/bbolt v1.3.7 // indirect
32-
go.uber.org/atomic v1.10.0 // indirect
33-
golang.org/x/net v0.7.0
34-
golang.org/x/sys v0.5.0 // indirect
35-
golang.org/x/text v0.7.0
32+
golang.org/x/net v0.8.0
33+
golang.org/x/sys v0.6.0 // indirect
34+
golang.org/x/text v0.8.0
3635
)
3736

3837
require github.com/spaolacci/murmur3 v1.1.0
3938

4039
require (
41-
github.com/PuerkitoBio/goquery v1.8.0
40+
github.com/PuerkitoBio/goquery v1.8.1
4241
github.com/bxcodec/faker/v4 v4.0.0-beta.3
4342
github.com/hdm/jarm-go v0.0.7
4443
github.com/mfonda/simhash v0.0.0-20151007195837-79f94a1100d6
4544
github.com/mitchellh/mapstructure v1.5.0
46-
github.com/projectdiscovery/asnmap v0.0.1
45+
github.com/projectdiscovery/asnmap v1.0.1
4746
github.com/projectdiscovery/dsl v0.0.3
48-
github.com/projectdiscovery/fastdialer v0.0.22
47+
github.com/projectdiscovery/fastdialer v0.0.24
4948
github.com/projectdiscovery/ratelimit v0.0.6
5049
github.com/projectdiscovery/tlsx v1.0.4
51-
github.com/projectdiscovery/utils v0.0.13
50+
github.com/projectdiscovery/utils v0.0.14
5251
github.com/stretchr/testify v1.8.2
53-
go.uber.org/multierr v1.9.0
52+
go.uber.org/multierr v1.10.0
5453
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2
5554
)
5655

@@ -87,11 +86,10 @@ require (
8786
github.com/nxadm/tail v1.4.8 // indirect
8887
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
8988
github.com/pmezard/go-difflib v1.0.0 // indirect
90-
github.com/projectdiscovery/blackrock v0.0.0-20220628111055-35616c71b2dc // indirect
89+
github.com/projectdiscovery/blackrock v0.0.0-20221025011524-9e4efe804fb4 // indirect
9190
github.com/projectdiscovery/freeport v0.0.4 // indirect
92-
github.com/projectdiscovery/networkpolicy v0.0.3 // indirect
93-
github.com/projectdiscovery/reflectutil v0.0.0-20210804085554-4d90952bf92f // indirect
94-
github.com/projectdiscovery/retryabledns v1.0.20 // indirect
91+
github.com/projectdiscovery/networkpolicy v0.0.4 // indirect
92+
github.com/projectdiscovery/retryabledns v1.0.21 // indirect
9593
github.com/prometheus/client_golang v1.14.0 // indirect
9694
github.com/prometheus/client_model v0.3.0 // indirect
9795
github.com/prometheus/common v0.40.0 // indirect
@@ -117,7 +115,7 @@ require (
117115
github.com/zmap/zcrypto v0.0.0-20230205235340-d51ce4775101 // indirect
118116
golang.org/x/crypto v0.5.0 // indirect
119117
golang.org/x/mod v0.8.0 // indirect
120-
golang.org/x/tools v0.5.0 // indirect
118+
golang.org/x/tools v0.6.0 // indirect
121119
google.golang.org/protobuf v1.28.1 // indirect
122120
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
123121
gopkg.in/ini.v1 v1.67.0 // indirect

0 commit comments

Comments
 (0)