nuclei-templates/.github/workflows/template-db-indexer.yml

34 lines
854 B
YAML
Raw Normal View History

name: 📑 Template-DB Indexer
on:
push:
2022-03-23 15:25:35 +00:00
branches:
2023-01-05 10:56:27 +00:00
- main
2023-01-15 16:05:57 +00:00
paths:
- '**.yaml'
workflow_dispatch:
jobs:
index:
2023-07-27 23:05:09 +00:00
runs-on: ubuntu-latest-16-cores
if: github.repository == 'projectdiscovery/nuclei-templates'
steps:
2023-01-15 16:05:57 +00:00
- name: Set up Go
uses: actions/setup-go@v4
with:
2023-07-27 22:31:54 +00:00
go-version: 1.20.x
- name: Installing Indexer
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: |
generate-index -mode templates