From 7b302771dfe25ce467a9631b3ead4a82a4708ff9 Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Sat, 5 Aug 2023 14:59:57 +0330 Subject: [PATCH 1/9] Add workflows Add syntax checking and template validation workflow --- .github/workflows/syntax-checking.yml | 20 +++++++++++++++++ .github/workflows/template-validate.yml | 30 +++++++++++++++++++++++++ .yamllint | 25 +++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 .github/workflows/syntax-checking.yml create mode 100644 .github/workflows/template-validate.yml create mode 100644 .yamllint diff --git a/.github/workflows/syntax-checking.yml b/.github/workflows/syntax-checking.yml new file mode 100644 index 0000000..f641b2a --- /dev/null +++ b/.github/workflows/syntax-checking.yml @@ -0,0 +1,20 @@ +name: ❄️ YAML Lint + +on: + push: + pull_request: + paths: + - '**.yaml' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Yamllint + uses: karancode/yamllint-github-action@v2.1.1 + with: + yamllint_config_filepath: .yamllint + yamllint_strict: false + yamllint_comment: true diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml new file mode 100644 index 0000000..0b29477 --- /dev/null +++ b/.github/workflows/template-validate.yml @@ -0,0 +1,30 @@ +name: 🛠 Template Validate + +on: + push: + pull_request: + paths: + - '**.yaml' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.20.x + + - name: nuclei install + run: go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest + + - name: Template Validation + run: | + cp -r ${{ github.workspace }} $HOME + nuclei -duc -validate -allow-local-file-access + nuclei -duc -validate -w ./workflows -allow-local-file-access diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..8d5ac48 --- /dev/null +++ b/.yamllint @@ -0,0 +1,25 @@ +--- +extends: default + +ignore: | + .pre-commit-config.yml + .github/ + .git/ + *.yml + +rules: + document-start: disable + line-length: disable + new-lines: disable + new-line-at-end-of-file: disable + truthy: disable + comments: + require-starting-space: true + ignore-shebangs: true + min-spaces-from-content: 1 + empty-lines: + max: 5 + braces: + forbid: true + brackets: + forbid: true From dc63a98350e22f6d8a856ce33ff535c085a0e9ec Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Fri, 18 Aug 2023 11:58:17 +0330 Subject: [PATCH 2/9] Update template-validate.yml Signed-off-by: Hamed Salimian --- .github/workflows/template-validate.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml index 0b29477..ebec010 100644 --- a/.github/workflows/template-validate.yml +++ b/.github/workflows/template-validate.yml @@ -25,6 +25,4 @@ jobs: - name: Template Validation run: | - cp -r ${{ github.workspace }} $HOME - nuclei -duc -validate -allow-local-file-access - nuclei -duc -validate -w ./workflows -allow-local-file-access + nuclei -duc -validate -allow-local-file-access -t ${{ github.workspace }}\templates From cd3329ad05079f3c9e59078a8db2ddbd5613e94c Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Fri, 18 Aug 2023 12:06:34 +0330 Subject: [PATCH 3/9] Update template-validate.yml Signed-off-by: Hamed Salimian --- .github/workflows/template-validate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml index ebec010..2656ccd 100644 --- a/.github/workflows/template-validate.yml +++ b/.github/workflows/template-validate.yml @@ -25,4 +25,5 @@ jobs: - name: Template Validation run: | - nuclei -duc -validate -allow-local-file-access -t ${{ github.workspace }}\templates + cp -r ${{ github.workspace }}/templates /home/runner/nuclei-templates + nuclei -duc -validate -allow-local-file-access From 2bb7d8b52cea665ba41d751ff719f8fd26df5a50 Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Sun, 20 Aug 2023 11:00:16 +0330 Subject: [PATCH 4/9] Update tab_contributing.md Signed-off-by: Hamed Salimian --- tab_contributing.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/tab_contributing.md b/tab_contributing.md index 2a82cf5..e5bec91 100644 --- a/tab_contributing.md +++ b/tab_contributing.md @@ -15,7 +15,5 @@ For detailed information and guidelines about contributing in "ASVS evaluation t ### Core Team The project current core team are: - [Hamed Salimain](https://github.com/Snbig) (Project Leader) -- [Mohammad Khodaiemehr](https://github.com/m0khd) - [Amin Naserinia](https://github.com/aminnaseri) - [Reza Saeedi](https://github.com/Reza-saeedi) -- [Dorna Azhirak](https://github.com/nameddorna) From f8ef8d345595e6fbfbff573ccc8fde4431b50789 Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Mon, 4 Sep 2023 07:15:15 +0330 Subject: [PATCH 5/9] Update tab_contributing.md Signed-off-by: Hamed Salimian --- tab_contributing.md | 1 - 1 file changed, 1 deletion(-) diff --git a/tab_contributing.md b/tab_contributing.md index e5bec91..e1a150d 100644 --- a/tab_contributing.md +++ b/tab_contributing.md @@ -15,5 +15,4 @@ For detailed information and guidelines about contributing in "ASVS evaluation t ### Core Team The project current core team are: - [Hamed Salimain](https://github.com/Snbig) (Project Leader) -- [Amin Naserinia](https://github.com/aminnaseri) - [Reza Saeedi](https://github.com/Reza-saeedi) From dd9eeedbab7e4493191f85f5b660210dd8201d78 Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Mon, 4 Sep 2023 07:16:05 +0330 Subject: [PATCH 6/9] Update README.md Signed-off-by: Hamed Salimian --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 7037f89..091b4a0 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,5 @@ For detailed information and guidelines about contributing in developing templat #### Core Team The project current core team are: - [Hamed Salimain](https://github.com/Snbig) (Project Leader) -- [Amin Naserinia](https://github.com/aminnaseri) - [Reza Saeedi](https://github.com/Reza-saeedi) From 651eb3d7402ce1ff71d457eb2e74b31f774ceede Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Sat, 14 Oct 2023 11:52:27 +0330 Subject: [PATCH 7/9] Update tab_contributing.md Signed-off-by: Hamed Salimian --- tab_contributing.md | 1 - 1 file changed, 1 deletion(-) diff --git a/tab_contributing.md b/tab_contributing.md index e1a150d..633a668 100644 --- a/tab_contributing.md +++ b/tab_contributing.md @@ -15,4 +15,3 @@ For detailed information and guidelines about contributing in "ASVS evaluation t ### Core Team The project current core team are: - [Hamed Salimain](https://github.com/Snbig) (Project Leader) -- [Reza Saeedi](https://github.com/Reza-saeedi) From 75b9111b4cfd8523373889dd622b34c7e78b552a Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Sat, 14 Oct 2023 11:52:48 +0330 Subject: [PATCH 8/9] Update README.md Signed-off-by: Hamed Salimian --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 091b4a0..3654252 100644 --- a/README.md +++ b/README.md @@ -23,5 +23,4 @@ For detailed information and guidelines about contributing in developing templat #### Core Team The project current core team are: - [Hamed Salimain](https://github.com/Snbig) (Project Leader) -- [Reza Saeedi](https://github.com/Reza-saeedi) From b6fb75318f07034b3dd9d5260535d67a35e84746 Mon Sep 17 00:00:00 2001 From: Hamed Salimian Date: Tue, 2 Jan 2024 07:30:03 +0330 Subject: [PATCH 9/9] Update template-validate.yml Signed-off-by: Hamed Salimian --- .github/workflows/template-validate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml index 2656ccd..3caedc5 100644 --- a/.github/workflows/template-validate.yml +++ b/.github/workflows/template-validate.yml @@ -11,17 +11,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x - name: nuclei install - run: go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest + run: go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest - name: Template Validation run: |