Skip to content

Commit 65e91f1

Browse files
authored
Merge pull request #173 from projectdiscovery/dev
v2.0.4
2 parents d2ab1b7 + 9cf65af commit 65e91f1

25 files changed

+556
-806
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ updates:
1111
directory: "/"
1212
schedule:
1313
interval: "weekly"
14+
target-branch: "dev"
1415
commit-message:
1516
prefix: "chore"
1617
include: "scope"
@@ -20,6 +21,7 @@ updates:
2021
directory: "/"
2122
schedule:
2223
interval: "weekly"
24+
target-branch: "dev"
2325
commit-message:
2426
prefix: "chore"
2527
include: "scope"
@@ -29,6 +31,7 @@ updates:
2931
directory: "/"
3032
schedule:
3133
interval: "weekly"
34+
target-branch: "dev"
3235
commit-message:
3336
prefix: "chore"
34-
include: "scope"
37+
include: "scope"

.github/workflows/build-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 🔨 Build Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
8+
jobs:
9+
build:
10+
name: Build Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up Go
14+
uses: actions/setup-go@v2
15+
with:
16+
go-version: 1.15
17+
18+
- name: Install libpcap-dev
19+
run: sudo apt install libpcap-dev
20+
21+
- name: Check out code
22+
uses: actions/checkout@v2
23+
24+
- name: Test
25+
run: go test .
26+
working-directory: v2/cmd/naabu/
27+
28+
- name: Build
29+
run: go build .
30+
working-directory: v2/cmd/naabu/

.github/workflows/build.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 🚨 CodeQL Analysis
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- dev
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ 'go' ]
22+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
27+
28+
# Initializes the CodeQL tools for scanning.
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v1
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v1
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v1
Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
1-
# dockerhub-push pushes docker build to dockerhub automatically
2-
# on the creation of a new release
3-
name: Publish to Dockerhub on creation of a new release
4-
on:
1+
name: 🌥 Docker Push
2+
3+
on:
54
release:
65
types: [published]
6+
workflow_dispatch:
7+
78
jobs:
8-
build:
9+
docker:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@master
12-
- name: Publish to Dockerhub Registry
13-
uses: elgohr/Publish-Docker-Github-Action@master
14-
with:
15-
name: projectdiscovery/naabu
16-
username: ${{ secrets.DOCKER_USERNAME }}
17-
password: ${{ secrets.DOCKER_PASSWORD }}
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v1
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v1
20+
21+
- name: Login to DockerHub
22+
uses: docker/login-action@v1
23+
with:
24+
username: ${{ secrets.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_TOKEN }}
26+
27+
- name: Build and push
28+
uses: docker/build-push-action@v2
29+
with:
30+
context: .
31+
platforms: linux/amd64,linux/arm64,linux/arm
32+
push: true
33+
tags: projectdiscovery/naabu:latest

.github/workflows/lint-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 🙏🏻 Lint Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
lint:
9+
name: Lint Test
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Run golangci-lint
16+
uses: golangci/golangci-lint-action@v2
17+
with:
18+
version: latest
19+
args: --timeout 5m
20+
working-directory: v2/
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: 🎉 Release Binary
2+
on:
3+
create:
4+
tags:
5+
- v*
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-mac:
10+
runs-on: macos-latest
11+
steps:
12+
- name: Code checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.16
20+
- name: Install Dependences
21+
run: brew install libpcap
22+
- name: Run GoReleaser
23+
uses: goreleaser/goreleaser-action@v2
24+
with:
25+
version: latest
26+
args: release -f .goreleaser/mac.yml --rm-dist
27+
workdir: v2
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
31+
build-linux:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Code checkout
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
- name: Set up Go
39+
uses: actions/setup-go@v2
40+
with:
41+
go-version: 1.16
42+
- name: Install Dependences
43+
run: sudo apt install libpcap-dev
44+
45+
- name: Run GoReleaser
46+
uses: goreleaser/goreleaser-action@v2
47+
with:
48+
version: latest
49+
args: release -f .goreleaser/linux.yml --rm-dist
50+
workdir: v2
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
54+
build-windows:
55+
runs-on: windows-latest
56+
steps:
57+
- name: Code checkout
58+
uses: actions/checkout@v2
59+
with:
60+
fetch-depth: 0
61+
- name: Set up Go
62+
uses: actions/setup-go@v2
63+
with:
64+
go-version: 1.16
65+
- name: Run GoReleaser
66+
uses: goreleaser/goreleaser-action@v2
67+
with:
68+
version: latest
69+
args: release -f .goreleaser/windows.yml --rm-dist
70+
workdir: v2
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)