From 24100d8c3e69a257feb5732d88eaf78a5fee549f Mon Sep 17 00:00:00 2001 From: Tarun Koyalwar Date: Sun, 1 Dec 2024 18:08:57 +0530 Subject: [PATCH] update template sign workflow --- .github/workflows/template-sign.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/template-sign.yml b/.github/workflows/template-sign.yml index a6cdf75d973..5bfd80ce1f7 100644 --- a/.github/workflows/template-sign.yml +++ b/.github/workflows/template-sign.yml @@ -10,6 +10,7 @@ on: jobs: build: + name: Sign All Templates runs-on: ubuntu-latest if: github.repository == 'projectdiscovery/nuclei-templates' steps: @@ -28,3 +29,25 @@ jobs: run: | git pull origin $GITHUB_REF --rebase git push origin $GITHUB_REF + + build-windows: + name: Re-sign Windows Templates + needs: build + runs-on: windows-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 .\code\windows + 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: re-sign windows templates 🤖' + - name: Push changes + run: | + git pull origin $GITHUB_REF --rebase + git push origin $GITHUB_REF \ No newline at end of file