Skip to content

Commit 3a0e37d

Browse files
authored
Update template-sign.yml
Signed-off-by: Hamed Salimian <[email protected]>
1 parent 5744ae1 commit 3a0e37d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/template-sign.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,28 @@ jobs:
1414
if: github.repository == 'OWASP/www-project-asvs-security-evaluation-templates-with-nuclei'
1515
steps:
1616
- uses: actions/checkout@v4
17+
1718
- uses: projectdiscovery/actions/setup/nuclei@v1
1819
- run: nuclei -lfa -duc -sign -ud $GITHUB_WORKSPACE -t .
1920
env:
2021
NUCLEI_USER_CERTIFICATE: ${{ secrets.NUCLEI_USER_CERTIFICATE }}
2122
NUCLEI_USER_PRIVATE_KEY: ${{ secrets.NUCLEI_USER_PRIVATE_KEY }}
23+
24+
# Set up GPG for automatic commit signing
25+
- name: Set up GPG
26+
run: |
27+
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
28+
git config --global user.name "Signing Bot"
29+
git config --global user.email "[email protected]"
30+
git config --global commit.gpgSign true
31+
git config --global user.signingkey ${{ secrets.GPG_KEY_ID }}
32+
2233
- uses: projectdiscovery/actions/setup/git@v1
2334
- uses: projectdiscovery/actions/commit@v1
2435
with:
2536
files: '.'
2637
message: 'chore: sign templates 🤖'
38+
2739
- name: Push changes
2840
run: |
2941
git pull origin $GITHUB_REF --rebase

0 commit comments

Comments
 (0)