From 691fa1361d5a40755c4a2df33b81a46bf03d4882 Mon Sep 17 00:00:00 2001 From: oleksandrkhmil Date: Fri, 8 Nov 2024 17:16:38 +0200 Subject: [PATCH] ci: add codql --- .github/workflows/codeql.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 0000000..25d8e7e --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,32 @@ +name: CodeQL + +on: + push: + branches: master + pull_request: + branches: master + schedule: + - cron: '0 6 * * 5' + +permissions: + security-events: write + packages: read + actions: read + contents: read + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: github/codeql-action/init@v3 + with: + languages: go + build-mode: autobuild + queries: security-extended + + - uses: github/codeql-action/analyze@v3 + with: + category: /language:go