Skip to content

Commit

Permalink
Create template-sign.yml
Browse files Browse the repository at this point in the history
Create automate template signing action.

Signed-off-by: Hamed Salimian <[email protected]>
  • Loading branch information
Snbig authored Nov 30, 2024
1 parent bfb221d commit 0fb018f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/template-sign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ☑️ Template Sign

on:
push:
branches:
- main
paths:
- '**.yaml'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'projectdiscovery/nuclei-templates'
steps:
- uses: actions/checkout@v4
- uses: projectdiscovery/actions/setup/nuclei@v1
- run: nuclei -lfa -duc -sign -ud $GITHUB_WORKSPACE -t .
env:
NUCLEI_USER_CERTIFICATE: ${{ secrets.NUCLEI_USER_CERTIFICATE }}
NUCLEI_USER_PRIVATE_KEY: ${{ secrets.NUCLEI_USER_PRIVATE_KEY }}
- uses: projectdiscovery/actions/setup/git@v1
- uses: projectdiscovery/actions/commit@v1
with:
files: '.'
message: 'chore: sign templates 🤖'
- name: Push changes
run: |
git pull origin $GITHUB_REF --rebase
git push origin $GITHUB_REF

0 comments on commit 0fb018f

Please sign in to comment.