From abcb77e6fced7f0e97d7c1338b0f240c062ad880 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 6 May 2026 00:30:19 -0700 Subject: [PATCH] chore(ci): add CodeQL analysis --- .github/workflows/codeql.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..677d7ae --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL + +on: + pull_request: + push: + branches: + - main + schedule: + - cron: "29 4 * * 1" + workflow_dispatch: + +permissions: + actions: read + contents: read + security-events: write + +jobs: + analyze: + name: analyze + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Go + uses: actions/setup-go@v6 + with: + go-version-file: go.mod + cache: true + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: go + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4