Added Template Checksum generator (#6283)

* Added Template Checksum generator

* fixed lint errors
patch-1
Sandeep Singh 2022-12-07 14:54:33 +05:30 committed by GitHub
parent 8c6e2e98b0
commit b48c05dc27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 4 deletions

37
.github/workflows/template-checksum.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: 📝 Template Checksum
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: 1.18
- name: install checksum generator
run: |
go install -v github.com/projectdiscovery/nuclei/v2/cmd/generate-checksum@dev
- name: generate checksum
run: |
generate-checksum /home/runner/work/nuclei-templates/nuclei-templates/ templates-checksum.txt
- name: Commit files
run: |
git add templates-checksum.txt
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Auto Generated Templates Checksum [$(date)] :robot:" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master

View File

@ -6,8 +6,8 @@ info:
severity: info
description: Obtain InfluxDB Version Information
reference:
- https://docs.influxdata.com/influxdb/v1.8/tools/api/#ping-http-endpoint
- https://github.com/influxdata/influxdb/blob/master/http/platform_handler.go#L62
- https://docs.influxdata.com/influxdb/v1.8/tools/api/#ping-http-endpoint
- https://github.com/influxdata/influxdb/blob/master/http/platform_handler.go#L62
metadata:
verified: true
shodan-query: "X-Influxdb-"