Skip to content

Commit 3fee6a7

Browse files
authored
Merge pull request #71 from projectdiscovery/dev
v1.0.0 Release preparation
2 parents c03d0cf + 436e11a commit 3fee6a7

Some content is hidden

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

44 files changed

+1699
-1374
lines changed

.github/dependabot.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
9+
# Maintain dependencies for GitHub Actions
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"
14+
target-branch: "dev"
15+
commit-message:
16+
prefix: "chore"
17+
include: "scope"
18+
19+
# Maintain dependencies for go modules
20+
- package-ecosystem: "gomod"
21+
directory: "/"
22+
schedule:
23+
interval: "weekly"
24+
target-branch: "dev"
25+
commit-message:
26+
prefix: "chore"
27+
include: "scope"
28+
29+
# Maintain dependencies for docker
30+
- package-ecosystem: "docker"
31+
directory: "/"
32+
schedule:
33+
interval: "weekly"
34+
target-branch: "dev"
35+
commit-message:
36+
prefix: "chore"
37+
include: "scope"

.github/workflows/build-test.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 🔨 Build Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
8+
jobs:
9+
build:
10+
name: Test Builds
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: Check out code
19+
uses: actions/checkout@v2
20+
21+
- name: Test
22+
run: go test .
23+
working-directory: cmd/notify/
24+
25+
- name: Build
26+
run: go build .
27+
working-directory: cmd/notify/

.github/workflows/build.yaml

-48
This file was deleted.

.github/workflows/codeql-analysis.yml

+38
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

.github/workflows/dockerhub-push.yml

+29-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
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/notify
16-
username: ${{ secrets.DOCKER_USERNAME }}
17-
password: ${{ secrets.DOCKER_PASSWORD }}
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
-
16+
name: Set up QEMU
17+
uses: docker/setup-qemu-action@v1
18+
-
19+
name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v1
21+
-
22+
name: Login to DockerHub
23+
uses: docker/login-action@v1
24+
with:
25+
username: ${{ secrets.DOCKER_USERNAME }}
26+
password: ${{ secrets.DOCKER_TOKEN }}
27+
-
28+
name: Build and push
29+
uses: docker/build-push-action@v2
30+
with:
31+
context: .
32+
platforms: linux/amd64,linux/arm64,linux/arm
33+
push: true
34+
tags: projectdiscovery/notify:latest

.github/workflows/lint-test.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
- name: Run golangci-lint
15+
uses: golangci/golangci-lint-action@v2
16+
with:
17+
version: latest
18+
args: --timeout 5m
19+
working-directory: .

.github/workflows/release.yml .github/workflows/release-binary.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Release
1+
name: 🎉 Release Binary
22
on:
33
create:
44
tags:
55
- v*
6+
workflow_dispatch:
67

78
jobs:
89
release:
@@ -17,12 +18,13 @@ jobs:
1718
name: "Set up Go"
1819
uses: actions/setup-go@v2
1920
with:
20-
go-version: 1.14
21+
go-version: 1.16
2122
-
2223
env:
2324
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2425
name: "Create release on GitHub"
2526
uses: goreleaser/goreleaser-action@v2
2627
with:
2728
args: "release --rm-dist"
28-
version: latest
29+
version: latest
30+
workdir: .

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
cmd/notify/notify
2-
cmd/intercept/intercept
32
.DS_Store
43
dist

.golangci.yml

-122
This file was deleted.

0 commit comments

Comments
 (0)