From bff36180e01057356e844bd40d72a88d52eee993 Mon Sep 17 00:00:00 2001 From: umang01-hash Date: Wed, 8 Jan 2025 11:20:25 +0530 Subject: [PATCH 1/5] test warning count step --- .github/workflows/go.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f3346fd98..9269bf504 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -118,6 +118,20 @@ jobs: grep -v '/mock_' package.cov > profile.cov go tool cover -func profile.cov + - name: Count Warnings + id: count-warnings + run: | + warning_count=$(go test gofr.dev/pkg/... -v | grep -c "WARNING") + echo "Warnings found: $warning_count" + echo "warning_count=$warning_count" >> $GITHUB_ENV + + - name: Fail if too many warnings + run: | + if [ ${{ env.warning_count }} -gt 10 ]; then + echo "Too many warnings: ${{ env.warning_count }}" + exit 1 + fi + - name: Upload Test Coverage if: ${{ matrix.go-version == '1.22'}} uses: actions/upload-artifact@v4 From fb965d583f8c5f0329d760cdb5a1ebd356d399fa Mon Sep 17 00:00:00 2001 From: umang01-hash Date: Wed, 8 Jan 2025 11:41:16 +0530 Subject: [PATCH 2/5] fix error in count warning step --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9269bf504..62083e64e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -121,7 +121,7 @@ jobs: - name: Count Warnings id: count-warnings run: | - warning_count=$(go test gofr.dev/pkg/... -v | grep -c "WARNING") + warning_count=$(go test gofr.dev/pkg/... -v | grep -c "WARNING" || true) echo "Warnings found: $warning_count" echo "warning_count=$warning_count" >> $GITHUB_ENV From a3afe6bc6dd7c18b6058afa4ccec376fd27b3f0d Mon Sep 17 00:00:00 2001 From: umang01-hash Date: Wed, 8 Jan 2025 12:30:36 +0530 Subject: [PATCH 3/5] add form to report private vulnerability reports --- SECURITY.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SECURITY.md b/SECURITY.md index f6def206b..fdeb4dd80 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -12,3 +12,7 @@ Following versions are being supported for security updates. ## Reporting a Vulnerability To report a vulnerability, please file an issue on this repo and add "security" label. Security related issues will be prioritized over others. We strive to triage the issue within a single working day. + +## Private Defect Report via Web + +You can submit vulnerability reports via our secure web form: [Submit a Vulnerability Report](https://forms.gle/ARn2nJJxz7HjMnBF6) \ No newline at end of file From d7a2655cb5dc112fb04949a414f01799e853f5b1 Mon Sep 17 00:00:00 2001 From: umang01-hash Date: Wed, 8 Jan 2025 12:55:31 +0530 Subject: [PATCH 4/5] add secure cloning info in readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 52eb46f8e..31ca648f9 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,18 @@ Help us make GoFr even better: --- +## 🔒 **Secure Cloning** +To securely clone the GoFr repository, you can use HTTPS or SSH: + +### Cloning with HTTPS +```bash +git clone https://github.com/gofr-dev/gofr.git +``` +### Cloning with SSH +```bash +git clone git@github.com:gofr-dev/gofr.git +``` + ### 🎁 **Get a GoFr T-Shirt & Stickers!** If your PR is merged, or if you contribute by writing articles or promoting GoFr, we invite you to fill out [this form](https://forms.gle/R1Yz7ZzY3U5WWTgy5) to claim your GoFr merchandise as a token of our appreciation! From 4f9a2ef3deb722ce7614d17da656e78ff897cfd8 Mon Sep 17 00:00:00 2001 From: umang01-hash Date: Thu, 9 Jan 2025 16:09:48 +0530 Subject: [PATCH 5/5] revert unwanted changes --- SECURITY.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index fdeb4dd80..f6def206b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -12,7 +12,3 @@ Following versions are being supported for security updates. ## Reporting a Vulnerability To report a vulnerability, please file an issue on this repo and add "security" label. Security related issues will be prioritized over others. We strive to triage the issue within a single working day. - -## Private Defect Report via Web - -You can submit vulnerability reports via our secure web form: [Submit a Vulnerability Report](https://forms.gle/ARn2nJJxz7HjMnBF6) \ No newline at end of file