Merge pull request #7 from OWASP/Snbig-patch-1 #8
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 Sign | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- '**.yaml' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository == 'OWASP/www-project-asvs-security-evaluation-templates-with-nuclei' | |
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 |