-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c0a5528
Showing
30 changed files
with
2,515 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
blank_issues_enabled: false | ||
|
||
contact_links: | ||
- name: Ask an question / advise on using cvemap | ||
url: https://github.com/projectdiscovery/cvemap/discussions/categories/q-a | ||
about: Ask a question or request support for using cvemap | ||
|
||
- name: Share idea / feature to discuss for cvemap | ||
url: https://github.com/projectdiscovery/cvemap/discussions/categories/ideas | ||
about: Share idea / feature to discuss for cvemap | ||
|
||
- name: Connect with PD Team (Discord) | ||
url: https://discord.gg/projectdiscovery | ||
about: Connect with PD Team for direct communication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Feature request | ||
about: Request feature to implement in this project | ||
labels: 'Type: Enhancement' | ||
--- | ||
|
||
<!-- | ||
1. Please make sure to provide a detailed description with all the relevant information that might be required to start working on this feature. | ||
2. In case you are not sure about your request or whether the particular feature is already supported or not, please start a discussion instead. | ||
3. GitHub Discussion: https://github.com/projectdiscovery/cvemap/discussions/categories/ideas | ||
4. Join our discord server at https://discord.gg/projectdiscovery to discuss the idea on the #cvemap channel. | ||
--> | ||
|
||
### Please describe your feature request: | ||
<!-- A clear and concise description of feature to implement --> | ||
|
||
### Describe the use case of this feature: | ||
<!-- A clear and concise description of the feature request's motivation and the use-cases in which it could be useful. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: Issue report | ||
about: Create a report to help us to improve the project | ||
labels: 'Type: Bug' | ||
|
||
--- | ||
|
||
<!-- | ||
1. Please search to see if an issue already exists for the bug you encountered. | ||
2. For support requests, FAQs or "How to" questions, please use the GitHub Discussions section instead - https://github.com/projectdiscovery/cvemap/discussions or | ||
3. Join our discord server at https://discord.gg/projectdiscovery and post the question on the #cvemap channel. | ||
--> | ||
|
||
<!-- ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. --> | ||
|
||
### cvemap version: | ||
<!-- You can find current version of cvemap with "cvemap -version" --> | ||
<!-- We only accept issues that are reproducible on the latest version of cvemap. --> | ||
<!-- You can find the latest version of project at https://github.com/projectdiscovery/cvemap/releases/ --> | ||
|
||
### Current Behavior: | ||
<!-- A concise description of what you're experiencing. --> | ||
|
||
### Expected Behavior: | ||
<!-- A concise description of what you expected to happen. --> | ||
|
||
### Steps To Reproduce: | ||
<!-- | ||
Example: steps to reproduce the behavior: | ||
1. Run 'cvemap ..' | ||
2. See error... | ||
--> | ||
|
||
|
||
### Anything else: | ||
<!-- Links? References? Screnshots? Anything that will give us more context about the issue that you are encountering! --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
|
||
# Maintain dependencies for go modules | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "main" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
labels: | ||
- "Type: Maintenance" | ||
allow: | ||
- dependency-name: "github.com/projectdiscovery/*" | ||
|
||
# # Maintain dependencies for docker | ||
# - package-ecosystem: "docker" | ||
# directory: "/" | ||
# schedule: | ||
# interval: "weekly" | ||
# target-branch: "dev" | ||
# commit-message: | ||
# prefix: "chore" | ||
# include: "scope" | ||
# labels: | ||
# - "Type: Maintenance" | ||
# | ||
# # Maintain dependencies for GitHub Actions | ||
# - package-ecosystem: "github-actions" | ||
# directory: "/" | ||
# schedule: | ||
# interval: "weekly" | ||
# target-branch: "dev" | ||
# commit-message: | ||
# prefix: "chore" | ||
# include: "scope" | ||
# labels: | ||
# - "Type: Maintenance" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
changelog: | ||
exclude: | ||
authors: | ||
- dependabot | ||
categories: | ||
- title: 🎉 New Features | ||
labels: | ||
- "Type: Enhancement" | ||
- title: 🐞 Bugs Fixes | ||
labels: | ||
- "Type: Bug" | ||
- title: 🔨 Maintenance | ||
labels: | ||
- "Type: Maintenance" | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: 🔨 Build Test | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.go' | ||
- '**.mod' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Test Builds | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
go-version: [1.21.x] | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: go build . | ||
working-directory: cmd/cvemap/ | ||
|
||
- name: Test | ||
run: go test ./... | ||
working-directory: . | ||
|
||
- name: Integration Tests Linux, macOS | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
env: | ||
GH_ACTION: true | ||
run: bash run.sh | ||
working-directory: cmd/integration-test/ | ||
|
||
- name: Integration Tests Windows | ||
if: runner.os == 'Windows' | ||
env: | ||
GH_ACTION: true | ||
MSYS_NO_PATHCONV: true | ||
run: bash run.sh | ||
working-directory: cmd/integration-test/ | ||
|
||
- name: Race Condition Tests | ||
if: github.actor != 'dependabot[bot]' | ||
run: go run -race . -id CVE-1999-0027 | ||
working-directory: cmd/cvemap/ | ||
env: | ||
PDCP_API_KEY: "${{ secrets.PDCP_API_KEY }}" | ||
PDCP_API_SERVER: https://api.projectdiscovery.io | ||
DEBUG: true | ||
|
||
# - name: Test Example Code | ||
# run: go run . | ||
# working-directory: examples/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 🚨 CodeQL Analysis | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'go' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 🤖 dep auto merge | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
permissions: | ||
pull-requests: write | ||
issues: write | ||
repository-projects: write | ||
|
||
jobs: | ||
automerge: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.DEPENDABOT_PAT }} | ||
|
||
- uses: ahmadnassri/action-dependabot-auto-merge@v2 | ||
with: | ||
github-token: ${{ secrets.DEPENDABOT_PAT }} | ||
target: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 🌥 Docker Push | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["🎉 Release Binary"] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest-16-cores | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get Github tag | ||
id: meta | ||
run: | | ||
curl --silent "https://api.github.com/repos/projectdiscovery/cvemap/releases/latest" | jq -r .tag_name | xargs -I {} echo TAG={} >> $GITHUB_OUTPUT | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64,linux/arm | ||
push: true | ||
tags: projectdiscovery/cvemap:latest,projectdiscovery/cvemap:${{ steps.meta.outputs.TAG }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 🙏🏻 Lint Test | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.go' | ||
- '**.mod' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
name: Lint Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21.x | ||
|
||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v3.6.0 | ||
with: | ||
version: latest | ||
args: --timeout 5m | ||
working-directory: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 🎉 Release Binary | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest-16-cores | ||
steps: | ||
- name: "Check out code" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21.x | ||
|
||
- name: "Create release on GitHub" | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
args: "release --clean" | ||
version: latest | ||
workdir: . | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}" | ||
DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}" | ||
DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}" |
Oops, something went wrong.