Merge pull request #8648 from Mr-B0hl00l/Update-CVE-2023-0600 #878
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: 🤖 TemplateMan | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.yaml' | |
workflow_dispatch: | |
jobs: | |
templateman: | |
runs-on: ubuntu-latest | |
if: github.repository == 'projectdiscovery/nuclei-templates' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
- name: Install TemplateMan CLI Client | |
run: | | |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf https://github | |
git clone https://github.com/projectdiscovery/templateman.git | |
cd templateman/templateman-cli/cmd/tmc | |
go install | |
- name: Run TemplateMan | |
id: tmc | |
run: | | |
echo /home/runner/work/nuclei-templates/nuclei-templates | tmc -mr -e | |
git status -s | wc -l | xargs -I {} echo CHANGES={} >> $GITHUB_OUTPUT | |
- name: Commit files | |
if: steps.tmc.outputs.CHANGES > 0 | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit --allow-empty -m "TemplateMan Update [$(date)] :robot:" -a | |
- name: Push changes | |
if: steps.tmc.outputs.CHANGES > 0 | |
run: | | |
git pull --rebase | |
git push origin ${{ github.ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |