2023-10-19 13:09:58 +00:00
|
|
|
name: ☑️ Template Sign
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- '**.yaml'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-02 09:35:40 +00:00
|
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
2023-10-19 13:09:58 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-08-05 02:48:40 +00:00
|
|
|
- uses: projectdiscovery/actions/setup/nuclei@v1
|
|
|
|
- run: nuclei -lfa -duc -sign -ud $GITHUB_WORKSPACE -t .
|
2023-10-19 13:09:58 +00:00
|
|
|
env:
|
|
|
|
NUCLEI_USER_CERTIFICATE: ${{ secrets.NUCLEI_USER_CERTIFICATE }}
|
|
|
|
NUCLEI_USER_PRIVATE_KEY: ${{ secrets.NUCLEI_USER_PRIVATE_KEY }}
|
2024-08-05 02:48:40 +00:00
|
|
|
- uses: projectdiscovery/actions/setup/git@v1
|
|
|
|
- uses: projectdiscovery/actions/commit@v1
|
|
|
|
with:
|
2024-08-14 01:32:37 +00:00
|
|
|
files: '.'
|
2024-08-05 02:48:40 +00:00
|
|
|
message: 'chore: sign templates 🤖'
|
2023-10-19 13:09:58 +00:00
|
|
|
- name: Push changes
|
|
|
|
run: |
|
2024-08-08 23:49:33 +00:00
|
|
|
git pull origin $GITHUB_REF --rebase
|
|
|
|
git push origin $GITHUB_REF
|