From e168fd826c50124cc3623f8987065cad62cc6f58 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 28 Oct 2023 08:01:20 +0200 Subject: [PATCH] ci: enable SAST scanning with CodeQL Signed-off-by: CrazyMax --- .github/workflows/codeql.yml | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..245693dc --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: codeql + +on: + push: + branches: + - 'master' + - 'v[0-9]*' + pull_request: + +permissions: + actions: read + contents: read + security-events: write + +env: + GO_VERSION: 1.21.3 + +jobs: + codeql: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + - + name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: go + - + name: Autobuild + uses: github/codeql-action/autobuild@v2 + - + name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:go"