2022-01-29 11:24:07 +00:00
|
|
|
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'
|
2022-01-29 11:24:07 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
index:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-15 16:05:57 +00:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v3
|
2022-01-29 11:24:07 +00:00
|
|
|
with:
|
2023-01-15 15:47:43 +00:00
|
|
|
go-version: 1.19
|
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: |
|
2022-12-16 20:05:36 +00:00
|
|
|
generate-index -mode templates
|