From ae560b3fd6dba588fe6e9aa01b9df4b97b9e5fa9 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 5 May 2026 19:36:16 -0700 Subject: [PATCH] ci: add codeql analysis --- .github/workflows/codeql.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..b69cb8f --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,38 @@ +name: CodeQL + +on: + pull_request: + push: + branches: + - main + - ci/codeql-control-gates + schedule: + - cron: "43 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