Skip to content

Commit 8c0dd5f

Browse files
authored
Merge pull request #5529 from projectdiscovery/dev
v3.3.1
2 parents bac9174 + f2f2507 commit 8c0dd5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+660
-477
lines changed

.github/ISSUE_TEMPLATE/issue-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ labels: 'Type: Bug'
1818
<!-- We only accept issues that are reproducible on the latest version of nuclei. -->
1919
<!-- You can find the latest version of project at https://github.com/projectdiscovery/nuclei/releases/ -->
2020

21+
## Nuclei command:
22+
23+
<!-- Provide the exact command you used to run Nuclei. -->
24+
<!-- Please redact any literal target hosts/URLs or other sensitive information. -->
25+
2126
### Current Behavior:
2227
<!-- A concise description of what you're experiencing. -->
2328

.github/workflows/build-test.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,23 @@ jobs:
1212
name: Test Builds
1313
strategy:
1414
matrix:
15-
go-version: [1.21.x]
1615
os: [ubuntu-latest, windows-latest, macOS-latest]
17-
1816
runs-on: ${{ matrix.os }}
1917
steps:
18+
- name: Check out code
19+
uses: actions/checkout@v4
20+
2021
- name: Set up Go
21-
uses: actions/setup-go@v4
22-
with:
23-
go-version: ${{ matrix.go-version }}
22+
uses: projectdiscovery/actions/setup/go@v1
2423

25-
- name: Set up Python # required for running python code in py-snippet.yaml integration test
24+
# required for running python code in py-snippet.yaml integration test
25+
- name: Set up Python
2626
uses: actions/setup-python@v4
2727
with:
2828
python-version: '3.10'
2929

30-
- name: Check out code
31-
uses: actions/checkout@v3
32-
33-
- name: Go Mod hygiene
34-
run: |
35-
go clean -modcache
36-
go mod tidy
30+
- name: Verify Go modules
31+
run: make verify
3732

3833
- name: Build
3934
run: go build .
@@ -65,9 +60,10 @@ jobs:
6560
run: go run .
6661
working-directory: examples/simple/
6762

68-
- name: Example SDK Advanced
69-
run: go run .
70-
working-directory: examples/advanced/
63+
# Temporarily disabled very flaky in github actions
64+
# - name: Example SDK Advanced
65+
# run: go run .
66+
# working-directory: examples/advanced/
7167

7268
- name: Example SDK with speed control
7369
run: go run .

.github/workflows/functional-test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest, macOS-latest]
1717
steps:
18-
- name: Set up Go
19-
uses: actions/setup-go@v4
20-
with:
21-
go-version: 1.21.x
22-
2318
- name: Check out code
24-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Go
22+
uses: projectdiscovery/actions/setup/go@v1
2523

2624
- name: Functional Tests
2725
env:

.github/workflows/lint-test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@ jobs:
1212
name: Lint Test
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Set up Go
16-
uses: actions/setup-go@v4
17-
with:
18-
go-version: 1.21.x
19-
2015
- name: Checkout code
21-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: projectdiscovery/actions/setup/go@v1
2220

2321
- name: Run golangci-lint
24-
uses: golangci/[email protected]
25-
with:
26-
version: latest
27-
args: --timeout 5m
22+
uses: projectdiscovery/actions/golangci-lint@v1

.github/workflows/performance-test.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,19 @@ jobs:
1111
name: Test Performance
1212
strategy:
1313
matrix:
14-
go-version: [1.21.x]
1514
os: [ubuntu-latest, macOS-latest]
1615

1716
runs-on: ${{ matrix.os }}
1817
if: github.repository == 'projectdiscovery/nuclei'
1918
steps:
20-
- name: Set up Go
21-
uses: actions/setup-go@v4
22-
with:
23-
go-version: ${{ matrix.go-version }}
24-
2519
- name: Check out code
26-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Go
23+
uses: projectdiscovery/actions/setup/go@v1
2724

28-
- name: Go Mod hygine
29-
run: |
30-
go clean -modcache
31-
go mod tidy
25+
- name: Verify Go modules
26+
run: make verify
3227

3328
# Max GH exection time 6H => timeout after that
3429
- name: Running performance with big list

.github/workflows/publish-docs.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

1818
- name: "Set up Go"
19-
uses: actions/setup-go@v4
20-
with:
21-
go-version: 1.21.x
19+
uses: projectdiscovery/actions/setup/go@v1
20+
21+
- name: "Set up Git"
22+
uses: projectdiscovery/actions/setup/git@v1
2223

2324
- name: Generate YAML Syntax Documentation
2425
id: generate-docs
@@ -35,8 +36,6 @@ jobs:
3536
- name: Commit files
3637
if: steps.generate-docs.outputs.CHANGES > 0
3738
run: |
38-
git config --local user.email "[email protected]"
39-
git config --local user.name "GitHub Action"
4039
git add SYNTAX-REFERENCE.md nuclei-jsonschema.json
4140
git commit -m "Auto Generate Syntax Docs + JSONSchema [$(date)] :robot:" -a
4241

.github/workflows/release-binary.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,17 @@ on:
99
jobs:
1010
release:
1111
runs-on: ubuntu-latest-16-cores
12-
1312
steps:
14-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1514
with:
1615
fetch-depth: 0
1716

18-
- uses: actions/setup-go@v4
19-
with:
20-
go-version: 1.21.x
17+
- name: Set up Go
18+
uses: projectdiscovery/actions/setup/go@v1
2119

22-
- uses: goreleaser/goreleaser-action@v4
20+
- uses: projectdiscovery/actions/goreleaser@v1
2321
with:
24-
args: "release --clean"
25-
version: latest
22+
release: true
2623
env:
2724
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2825
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"

.github/workflows/release-test.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest-16-cores
1313
steps:
1414
- name: "Check out code"
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Set up Go
20-
uses: actions/setup-go@v4
21-
with:
22-
go-version: 1.21.x
20+
uses: projectdiscovery/actions/setup/go@v1
2321

24-
- name: release test
25-
uses: goreleaser/goreleaser-action@v4
26-
with:
27-
args: "release --clean --snapshot"
28-
version: latest
22+
- name: Release snapshot
23+
uses: projectdiscovery/actions/goreleaser@v1

.github/workflows/template-validate.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest-16-cores
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-go@v4
15-
with:
16-
go-version: 1.21.x
13+
- uses: actions/checkout@v4
14+
15+
- uses: projectdiscovery/actions/setup/go@v1
1716

1817
- name: Template Validation
1918
run: |

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ifneq ($(shell go env GOOS),darwin)
1111
LDFLAGS := -extldflags "-static"
1212
endif
1313

14-
.PHONY: all build build-stats scan-charts docs test integration functional tidy devtools jsupdate ts fuzzplayground memogen dsl-docs
14+
.PHONY: all build build-stats scan-charts docs test integration functional tidy verify devtools jsupdate ts fuzzplayground memogen dsl-docs
1515

1616
all: build
1717
build:
@@ -39,6 +39,8 @@ functional:
3939
cd cmd/functional-test; bash run.sh
4040
tidy:
4141
$(GOMOD) tidy
42+
verify: tidy
43+
$(GOMOD) verify
4244
devtools:
4345
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "bindgen" pkg/js/devtools/bindgen/cmd/bindgen/main.go
4446
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "tsgen" pkg/js/devtools/tsgen/cmd/tsgen/main.go

0 commit comments

Comments
 (0)