nuclei-templates/.github/workflows/templates-sync.yml

17 lines
634 B
YAML
Raw Normal View History

2023-12-14 04:10:00 +00:00
name: Sync Repositories Workflow
on:
push:
paths:
- '.new-additions'
2024-07-29 03:16:08 +00:00
- 'http/cves/2023/CVE-2023-44393.yaml'
2024-07-26 13:03:06 +00:00
- 'http/osint/user-enumeration/substack.yaml'
2023-12-14 04:10:00 +00:00
workflow_dispatch:
jobs:
triggerRemoteWorkflow:
2024-03-02 09:35:40 +00:00
if: github.repository == 'projectdiscovery/nuclei-templates'
2024-03-04 09:34:20 +00:00
runs-on: ubuntu-latest
2023-12-14 04:10:00 +00:00
steps:
- name: Trigger Remote Workflow with curl
run: |
curl -i -s -k -X 'POST' -H 'Host: api.github.com' -H "Authorization: token ${{ secrets.GTOKEN }}" --data-binary $'{\"ref\":\"main\"}' 'https://api.github.com/repos/projectdiscovery/early-templates/actions/workflows/reposync.yml/dispatches'