2022-01-29 11:24:07 +00:00
|
|
|
name: 📑 Template-DB Indexer
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-11-27 08:58:31 +00:00
|
|
|
tags:
|
|
|
|
- '*'
|
2022-01-29 11:24:07 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
index:
|
2023-07-27 23:05:09 +00:00
|
|
|
runs-on: ubuntu-latest-16-cores
|
2023-06-30 17:57:25 +00:00
|
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
2022-01-29 11:24:07 +00:00
|
|
|
steps:
|
2023-01-15 16:05:57 +00:00
|
|
|
- name: Set up Go
|
2023-12-11 05:07:46 +00:00
|
|
|
uses: actions/setup-go@v5
|
2022-01-29 11:24:07 +00:00
|
|
|
with:
|
2023-10-30 12:01:26 +00:00
|
|
|
go-version: 1.21.x
|
2022-01-29 11:24:07 +00:00
|
|
|
|
2022-12-16 20:05:36 +00:00
|
|
|
- name: Installing Indexer
|
2022-01-29 11:24:07 +00:00
|
|
|
run: |
|
|
|
|
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf https://github
|
|
|
|
git clone https://github.com/projectdiscovery/nucleish-api.git
|
|
|
|
cd nucleish-api/cmd/generate-index/
|
|
|
|
go install
|
|
|
|
|
|
|
|
- name: Generate Index
|
|
|
|
env:
|
|
|
|
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
|
|
|
|
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
|
|
|
|
run: |
|
2024-04-28 10:37:41 +00:00
|
|
|
generate-index -mode templates -eft
|