From 37f400bf55c8ea8ebd413bdc0bbe4225290ae7ca Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Wed, 14 Aug 2024 08:30:43 +0700 Subject: [PATCH 1/5] ci(templates-sync): fix missing a `on.workflow_call` trigger Signed-off-by: Dwi Siswanto --- .github/workflows/templates-sync.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/templates-sync.yml b/.github/workflows/templates-sync.yml index b4b40163de..b6e6b2354b 100644 --- a/.github/workflows/templates-sync.yml +++ b/.github/workflows/templates-sync.yml @@ -39,6 +39,8 @@ on: - 'javascript/misconfiguration/x11/x11-unauth-access.yaml' - 'javascript/udp/detection/db2-discover.yaml' workflow_dispatch: + workflow_call: + jobs: sync: if: github.repository == 'projectdiscovery/nuclei-templates' From 8e0367061519c632f88d9c0767a54961f77fbfb6 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Wed, 14 Aug 2024 08:32:37 +0700 Subject: [PATCH 2/5] ci(template-sign): actions/commit with dot `files` input Signed-off-by: Dwi Siswanto --- .github/workflows/template-sign.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/template-sign.yml b/.github/workflows/template-sign.yml index 477aab0d00..a6cdf75d97 100644 --- a/.github/workflows/template-sign.yml +++ b/.github/workflows/template-sign.yml @@ -22,9 +22,7 @@ jobs: - uses: projectdiscovery/actions/setup/git@v1 - uses: projectdiscovery/actions/commit@v1 with: - files: | - cves.json - cves.json-checksum.txt + files: '.' message: 'chore: sign templates 🤖' - name: Push changes run: | From a7ee357d5e3f53a42d5d04c531606b692a53ff0e Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Wed, 14 Aug 2024 08:34:06 +0700 Subject: [PATCH 3/5] ci(template-checksum): debug checksum status Signed-off-by: Dwi Siswanto --- .github/workflows/template-checksum.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/template-checksum.yml b/.github/workflows/template-checksum.yml index 0603480e02..a490fd35b6 100644 --- a/.github/workflows/template-checksum.yml +++ b/.github/workflows/template-checksum.yml @@ -21,6 +21,7 @@ jobs: with: templates-directory: '${{ github.workspace }}' checksum-file: '${{ env.CHECKSUM_FILE }}' + - run: git status - uses: projectdiscovery/actions/setup/git@v1 - uses: projectdiscovery/actions/commit@v1 with: From fcfb2acb9170ced1691863cd71bf32ff8d3de015 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Wed, 14 Aug 2024 08:40:59 +0700 Subject: [PATCH 4/5] ci(template-checksum): debug use `master` branch Signed-off-by: Dwi Siswanto --- .github/workflows/template-checksum.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template-checksum.yml b/.github/workflows/template-checksum.yml index a490fd35b6..08c9ba6381 100644 --- a/.github/workflows/template-checksum.yml +++ b/.github/workflows/template-checksum.yml @@ -23,7 +23,7 @@ jobs: checksum-file: '${{ env.CHECKSUM_FILE }}' - run: git status - uses: projectdiscovery/actions/setup/git@v1 - - uses: projectdiscovery/actions/commit@v1 + - uses: projectdiscovery/actions/commit@master with: files: '${{ env.CHECKSUM_FILE }}' message: 'chore: generate templates checksum 🤖' From 389fb09933db83889a5de4c91cb2bf199cab1b97 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Wed, 14 Aug 2024 08:47:51 +0700 Subject: [PATCH 5/5] Revert "ci(template-checksum): debug use `master` branch" This reverts commit fcfb2acb9170ced1691863cd71bf32ff8d3de015. --- .github/workflows/template-checksum.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template-checksum.yml b/.github/workflows/template-checksum.yml index 08c9ba6381..a490fd35b6 100644 --- a/.github/workflows/template-checksum.yml +++ b/.github/workflows/template-checksum.yml @@ -23,7 +23,7 @@ jobs: checksum-file: '${{ env.CHECKSUM_FILE }}' - run: git status - uses: projectdiscovery/actions/setup/git@v1 - - uses: projectdiscovery/actions/commit@master + - uses: projectdiscovery/actions/commit@v1 with: files: '${{ env.CHECKSUM_FILE }}' message: 'chore: generate templates checksum 🤖'