From f336d2e1372904beff6b066235a95f563dda8e99 Mon Sep 17 00:00:00 2001 From: BozdoganMehmetozkan Date: Wed, 28 Aug 2024 15:50:37 +0300 Subject: [PATCH] gosec.yml commitlendi --- git-secrets | 1 + gosec.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 160000 git-secrets create mode 100644 gosec.yml diff --git a/git-secrets b/git-secrets new file mode 160000 index 0000000..5357e18 --- /dev/null +++ b/git-secrets @@ -0,0 +1 @@ +Subproject commit 5357e18bc27b42a827b6780564ea873a72ca1f01 diff --git a/gosec.yml b/gosec.yml new file mode 100644 index 0000000..ded9cb6 --- /dev/null +++ b/gosec.yml @@ -0,0 +1,23 @@ +name: GoSec Analysis + +on: [push, pull_request] + +jobs: + gosec: + name: Run GoSec Security Analysis + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.20' # veya kullandığınız Go sürümünü belirleyin + + - name: Install GoSec + run: go install github.com/securego/gosec/v2/cmd/gosec@latest + + - name: Run GoSec + run: gosec ./...