Merge pull request #8337 from gy741/rule-add-v149 #3473
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
name: 📑 Template-DB Indexer | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.yaml' | |
workflow_dispatch: | |
jobs: | |
index: | |
runs-on: ubuntu-latest-16-cores | |
if: github.repository == 'projectdiscovery/nuclei-templates' | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
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 |